private static void LoadCommonEntities() { foreach (AtmModel atmModel in XmlHelper.GetXmlObjects <AtmModel>(Path.Combine(Utils.XmlDirectory, nameof(AtmModel)))) { AtmEntity atmEntity = new AtmEntity(atmModel); atmEntity.Spawn(); Add(atmEntity); } foreach (TelephoneBoothModel telephoneBoothModel in XmlHelper.GetXmlObjects <TelephoneBoothModel>(Path.Combine(Utils.XmlDirectory, nameof(TelephoneBoothModel)))) { TelephoneBoothEntity telephoneBoothEntity = new TelephoneBoothEntity(telephoneBoothModel); telephoneBoothEntity.Spawn(); Add(telephoneBoothEntity); } foreach (BusStopModel atmModel in XmlHelper.GetXmlObjects <BusStopModel>(Path.Combine(Utils.XmlDirectory, nameof(BusStopModel)))) { BusStopEntity busStopEntity = new BusStopEntity(atmModel); busStopEntity.Spawn(); Add(busStopEntity); } foreach (CarshopModel carshopModel in XmlHelper.GetXmlObjects <CarshopModel>(Path.Combine(Utils.XmlDirectory, nameof(CarshopModel)))) { CarshopEntity carshopEntity = new CarshopEntity(carshopModel); carshopEntity.Spawn(); Add(carshopEntity); } foreach (CornerModel cornerModel in XmlHelper.GetXmlObjects <CornerModel>(Path.Combine(Utils.XmlDirectory, nameof(CornerModel)))) { CornerEntity cornerEntity = new CornerEntity(cornerModel); cornerEntity.Spawn(); Add(cornerEntity); } foreach (DriveThruModel driveThruModel in XmlHelper.GetXmlObjects <DriveThruModel>(Path.Combine(Utils.XmlDirectory, nameof(DriveThruModel)))) { DriveThruEntity driveThruEntity = new DriveThruEntity(driveThruModel); driveThruEntity.Spawn(); Add(driveThruEntity); } foreach (MarketModel marketModel in XmlHelper.GetXmlObjects <MarketModel>(Path.Combine(Utils.XmlDirectory, nameof(MarketModel)))) { MarketEntity marketEntity = new MarketEntity(marketModel); marketEntity.Spawn(); Add(marketEntity); } }
public static void Remove(TelephoneBoothEntity telephoneBooth) => TelephoneBooths.Remove(telephoneBooth);
public static void Add(TelephoneBoothEntity telephoneBoothEntity) => TelephoneBooths.Add(telephoneBoothEntity);