예제 #1
0
 public Squad(User owner, SquadSave save)
 {
     this.owner = owner;
     name = save.name;
     ident = save.ident;
     location = save.location;
     atStructure = save.atStructure;
     if (atStructure)
         if (GameServer.Instance.Structures.OpExists(location))
             defendedStructure = GameServer.Instance.Structures.GetStructure(location);
         else
             atStructure = false;
     if (!atStructure && save.data != null) {
         data = new TravelData(save.data);
     }
 }
예제 #2
0
 public Squad(User owner, SquadSave save)
 {
     this.owner  = owner;
     name        = save.name;
     ident       = save.ident;
     location    = save.location;
     atStructure = save.atStructure;
     if (atStructure)
     {
         if (GameServer.Instance.Structures.OpExists(location))
         {
             defendedStructure = GameServer.Instance.Structures.GetStructure(location);
         }
         else
         {
             atStructure = false;
         }
     }
     if (!atStructure && save.data != null)
     {
         data = new TravelData(save.data);
     }
 }
예제 #3
0
 public AirSquad(User owner, SquadSave save)
     : base(owner, save)
 {
 }
예제 #4
0
 public AirSquad(User owner, SquadSave save) : base(owner, save)
 {
 }