36 lines
916 B
C#
36 lines
916 B
C#
using System;
|
|
using BehaviorDesigner.Runtime;
|
|
using System.Collections.Generic;
|
|
using Gameplay.Unit;
|
|
using static Gameplay.Level.LevelData;
|
|
|
|
namespace Gameplay.BT.Variables
|
|
{
|
|
[Serializable]
|
|
public class BattleInfo
|
|
{
|
|
public uint ownerId;
|
|
public uint theChosenOneId;
|
|
public AIType AIName;
|
|
public AttachAIType AttachAIName;
|
|
public List<PatrolInfo> PatrolInfos;
|
|
public int PartolPointIndex;
|
|
public List<int> groupInfo;
|
|
public bool AutoFight = true;
|
|
public List<int> cannotReach;
|
|
|
|
/// <summary>
|
|
/// 目标位置
|
|
/// </summary>
|
|
public int targetPosition = -1;
|
|
|
|
}
|
|
|
|
public class SharedBattleInfo : SharedVariable<BattleInfo>
|
|
{
|
|
public static implicit operator SharedBattleInfo(BattleInfo value)
|
|
{
|
|
return new SharedBattleInfo { Value = value };
|
|
}
|
|
}
|
|
} |