60 lines
1.4 KiB
C#
60 lines
1.4 KiB
C#
using System;
|
|
using BehaviorDesigner.Runtime;
|
|
using System.Collections.Generic;
|
|
using static Gameplay.Level.LevelData;
|
|
|
|
namespace Gameplay.BT.Variables
|
|
{
|
|
[Serializable]
|
|
public class BattleInfo
|
|
{
|
|
|
|
public AIType AIName;
|
|
public AttachAIType AttachAIName;
|
|
|
|
public List<int> groupInfo;
|
|
public bool AutoFight = true;
|
|
public List<int> cannotReach;
|
|
|
|
public uint ownerID;
|
|
public uint targetID;
|
|
|
|
/// <summary>
|
|
/// 巡逻点索引
|
|
/// </summary>
|
|
public int patrolPointIndex;
|
|
|
|
/// <summary>
|
|
/// 巡逻数据
|
|
/// </summary>
|
|
public List<PatrolInfo> patrolInfos;
|
|
|
|
/// <summary>
|
|
/// 特殊目标
|
|
/// </summary>
|
|
public uint specialTargetID;
|
|
|
|
/// <summary>
|
|
/// 锁定目标时间
|
|
/// </summary>
|
|
public float lockSpecialTargetTime;
|
|
|
|
/// <summary>
|
|
/// 路点索引
|
|
/// </summary>
|
|
public int roadPointIndex;
|
|
|
|
/// <summary>
|
|
/// 停止获取目标
|
|
/// </summary>
|
|
public bool stopGetTarget;
|
|
}
|
|
|
|
public class SharedBattleInfo : SharedVariable<BattleInfo>
|
|
{
|
|
public static implicit operator SharedBattleInfo(BattleInfo value)
|
|
{
|
|
return new SharedBattleInfo { Value = value };
|
|
}
|
|
}
|
|
} |