public bool Compare(UniversalAddress a) { if (a.ClusterID == ClusterID && a.SolarSytemID == SolarSytemID && a.PlanetID == PlanetID) { return(true); } else { return(false); } }
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)); }
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)); }
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>)); }