Пример #1
0
 public Destination(TransportTycoon.Location location, int travelDuration, int loadDuration = 0, int unloadDuration = 0)
 {
     Location       = location;
     TravelDuration = travelDuration;
     LoadDuration   = loadDuration;
     UnloadDuration = unloadDuration;
 }
Пример #2
0
 public void Deconstruct(out TransportTycoon.Location location, out int travelDuration, out int loadDuration, out int unloadDuration)
 {
     location       = Location;
     travelDuration = TravelDuration;
     loadDuration   = LoadDuration;
     unloadDuration = UnloadDuration;
 }
Пример #3
0
 public void Deconstruct(out int id, out TransportTycoon.Location origin, out TransportTycoon.Location destination)
 {
     id          = Id;
     origin      = Origin;
     destination = Destination;
 }
Пример #4
0
 public void Deconstruct(out TransportTycoon.Location from, out TransportTycoon.TransportType transportType, out TransportTycoon.Location?to)
 {
     from          = From;
     transportType = TransportType;
     to            = To;
 }
Пример #5
0
 public Cargo(int id, TransportTycoon.Location origin, TransportTycoon.Location destination)
 {
     Id          = id;
     Origin      = origin;
     Destination = destination;
 }
Пример #6
0
 public Track(TransportTycoon.Location from, TransportTycoon.TransportType transportType, TransportTycoon.Location?to)
 {
     From          = from;
     TransportType = transportType;
     To            = to;
 }