2024-11-25 18:27:04 +08:00
|
|
|
|
using Code.Scripts.Gameplay.Fight.Evacuate;
|
|
|
|
|
|
using Framework;
|
|
|
|
|
|
namespace Gameplay.Unit.Data
|
2024-09-29 16:20:18 +08:00
|
|
|
|
{
|
|
|
|
|
|
public class UnitUIData
|
|
|
|
|
|
{
|
|
|
|
|
|
public GameUnit owner;
|
|
|
|
|
|
|
2024-10-09 13:22:30 +08:00
|
|
|
|
public int uiIndex
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
2024-10-09 13:19:06 +08:00
|
|
|
|
|
2024-10-09 13:22:30 +08:00
|
|
|
|
public bool isContinueLock
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
2024-09-29 16:20:18 +08:00
|
|
|
|
|
2024-11-20 15:18:21 +08:00
|
|
|
|
public bool isNPC
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-25 15:26:28 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否显示撤离按钮
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool showEvacuateBtn
|
|
|
|
|
|
{
|
2024-11-25 18:27:04 +08:00
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return standEvacuatePoint != null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private EvacuatePoint _evacuatePoint;
|
|
|
|
|
|
public EvacuatePoint standEvacuatePoint
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return _evacuatePoint;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_evacuatePoint != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
_evacuatePoint = value;
|
|
|
|
|
|
EventManager.Instance.Send(EventManager.EventName.INFIGHT_EVACUATE_CHANGE, owner);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-11-25 15:26:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-09-29 16:20:18 +08:00
|
|
|
|
public UnitUIData(GameUnit owner)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.owner = owner;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|