Exemple #1
0
        public SquadMember(Squad squad, int id)
        {
            Squad = squad;
            Id    = id;

            RefData = new SquadEntityRefData {
                SquadId = squad.Config.ServerId, MemberId = id
            };
        }
Exemple #2
0
 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]);
 }
Exemple #3
0
 public AttackUnitJob(Entity entity, Entity target)
     : base(entity)
 {
     _cachedTarget   = target;
     TargetEntityRef = target.GetModule <SquadMember>().RefData;
 }
Exemple #4
0
 protected EntityJob(Entity entity)
 {
     _cachedEntity = entity;
     EntityRef     = entity.GetModule <SquadMember>().RefData;
 }