2023-08-22 19:08:45 +08:00
|
|
|
using System;
|
|
|
|
|
using BehaviorDesigner.Runtime;
|
2024-09-18 14:38:27 +08:00
|
|
|
using System.Collections.Generic;
|
2023-08-22 19:08:45 +08:00
|
|
|
using static Gameplay.Level.LevelData;
|
|
|
|
|
|
|
|
|
|
namespace Gameplay.BT.Variables
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class BattleInfo
|
|
|
|
|
{
|
2025-02-19 13:44:13 +08:00
|
|
|
|
2023-08-22 19:08:45 +08:00
|
|
|
public AIType AIName;
|
|
|
|
|
public AttachAIType AttachAIName;
|
2025-03-21 15:22:32 +08:00
|
|
|
|
2024-07-22 14:46:20 +08:00
|
|
|
public List<int> groupInfo;
|
2024-09-18 14:38:27 +08:00
|
|
|
public bool AutoFight = true;
|
2024-12-17 17:01:36 +08:00
|
|
|
public List<int> cannotReach;
|
2025-02-18 14:25:54 +08:00
|
|
|
|
2025-02-19 13:44:13 +08:00
|
|
|
public uint ownerID;
|
|
|
|
|
public uint targetID;
|
2025-02-21 19:57:38 +08:00
|
|
|
|
2025-02-19 13:44:13 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 巡逻点索引
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int patrolPointIndex;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 巡逻数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<PatrolInfo> patrolInfos;
|
2025-02-21 19:57:38 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 特殊目标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint specialTargetID;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 锁定目标时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float lockSpecialTargetTime;
|
2025-02-25 14:06:22 +08:00
|
|
|
|
2025-02-24 19:26:18 +08:00
|
|
|
/// <summary>
|
2025-02-25 14:06:22 +08:00
|
|
|
/// 路点索引
|
2025-02-24 19:26:18 +08:00
|
|
|
/// </summary>
|
2025-02-25 14:06:22 +08:00
|
|
|
public int roadPointIndex;
|
2025-03-21 15:22:32 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 停止获取目标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool stopGetTarget;
|
2023-08-22 19:08:45 +08:00
|
|
|
}
|
2025-02-18 14:25:54 +08:00
|
|
|
|
2023-08-22 19:08:45 +08:00
|
|
|
public class SharedBattleInfo : SharedVariable<BattleInfo>
|
|
|
|
|
{
|
2025-02-18 14:25:54 +08:00
|
|
|
public static implicit operator SharedBattleInfo(BattleInfo value)
|
|
|
|
|
{
|
|
|
|
|
return new SharedBattleInfo { Value = value };
|
|
|
|
|
}
|
2023-08-22 19:08:45 +08:00
|
|
|
}
|
|
|
|
|
}
|