You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
684 B
24 lines
684 B
using System.Collections.Generic;
|
|
|
|
public partial class CombatContext
|
|
{
|
|
public int localPlayerEid = -1;
|
|
public int leveWaveEid = -1;
|
|
public int localCtrlEid = -1;
|
|
|
|
|
|
public static readonly List<CombatEntity> s_CacheEntities = new();
|
|
private CombatEntity m_GlobalEnt;
|
|
public CombatEntity GlobalEnt => m_GlobalEnt;
|
|
public void SetGlobalEnt(CombatEntity ent)
|
|
{
|
|
m_GlobalEnt = ent;
|
|
}
|
|
public CombatEntity LocalPlayer => GetEntity(localPlayerEid);
|
|
public CombatEntity LevelWave => GetEntity(leveWaveEid);
|
|
|
|
public new CombatEntity GetEntity(int entityId)
|
|
{
|
|
return _entities.GetValueOrDefault(entityId);
|
|
}
|
|
}
|