Ejemplo n.º 1
0
 public bool Compare(UniversalAddress a)
 {
     if (a.ClusterID == ClusterID && a.SolarSytemID == SolarSytemID && a.PlanetID == PlanetID)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 public SpecialStructure(SerializationInfo info, StreamingContext ctxt)
 {
     resourceType       = (int)info.GetValue("resourceType", typeof(int));
     specialType        = (Cmn.SpecialType)info.GetValue("specialType", typeof(Cmn.SpecialType));
     ProductionSize     = (int)info.GetValue("productionsize", typeof(int));
     BuffSize           = (float)info.GetValue("buffsize", typeof(float));
     Address            = (UniversalAddress)info.GetValue("address", typeof(UniversalAddress));
     Tile               = (Position)info.GetValue("tile", typeof(Position));
     DestinationAddress = (UniversalAddress)info.GetValue("destinationaddress", typeof(UniversalAddress));
     DestinationTile    = (Position)info.GetValue("destinationtile", typeof(Position));
 }
Ejemplo n.º 3
0
 public TroopMovement(SerializationInfo info, StreamingContext ctxt)
 {
     MovementType       = (Cmn.MovType)info.GetValue("movetype", typeof(Cmn.MovType));
     Defence            = (List <long>)info.GetValue("Defence", typeof(List <long>));
     Offence            = (List <long>)info.GetValue("Offence", typeof(List <long>));
     OriginOutpost      = (Outpost)info.GetValue("OriginOutpost", typeof(Outpost));
     DestinationOutpost = (Outpost)info.GetValue("DestinationOutpost", typeof(Outpost));
     Address            = (UniversalAddress)info.GetValue("Address", typeof(UniversalAddress));
     StartTick          = (int)info.GetValue("StartTick", typeof(int));
     Duration           = (int)info.GetValue("Duration", typeof(int));
 }
Ejemplo n.º 4
0
 public Outpost(SerializationInfo info, StreamingContext ctxt)
 {
     ID         = (int)info.GetValue("id", typeof(int));
     OwnerID    = (int)info.GetValue("ownerid", typeof(int));
     Capacity   = (int)info.GetValue("capacity", typeof(int));
     Tile       = (Position)info.GetValue("tile", typeof(Position));
     Buildings  = (List <long>)info.GetValue("building", typeof(List <long>));
     Defence    = (List <long>)info.GetValue("defence", typeof(List <long>));
     Offence    = (List <long>)info.GetValue("offence", typeof(List <long>));
     Address    = (UniversalAddress)info.GetValue("address", typeof(UniversalAddress));
     CoreShards = (int)info.GetValue("coreshards", typeof(int));
     Resources  = (List <long>)info.GetValue("Resources", typeof(List <long>));
 }