public SquadMember(Squad squad, int id) { Squad = squad; Id = id; RefData = new SquadEntityRefData { SquadId = squad.Config.ServerId, MemberId = id }; }
public Entity ResolveEntityRef(SquadEntityRefData data) { // this can throw so many exception, but it is intended. // for now.... // ...i think return(_squads .Where(s => s.Config.ServerId == data.SquadId) .First() .Members[data.MemberId]); }
public AttackUnitJob(Entity entity, Entity target) : base(entity) { _cachedTarget = target; TargetEntityRef = target.GetModule <SquadMember>().RefData; }
protected EntityJob(Entity entity) { _cachedEntity = entity; EntityRef = entity.GetModule <SquadMember>().RefData; }