public ParkingFloor(ParkingConstruct parent, string name, int locationCount) : base(parent, name) { ParkingLocations = new List <ParkingLocation>(); for (int i = 0; i < locationCount; i++) { ParkingLocations.Add(new ParkingLocation(string.Format("{0}-{1}", Name, i.ToString()))); } }
public ParkingRamp(ParkingConstruct parent, string name, int floorCount, int locationCount) : base(parent, name) { Name = name; Floors = new List <ParkingFloor>(); for (int i = 0; i < floorCount; i++) { Floors.Add(new ParkingFloor(this, string.Format("{0}-{1}", Name, i.ToString()), locationCount)); } }
public ParkingConstruct(ParkingConstruct parent, string name) { Parent = parent; Name = name; }