public FactoryRoom(GenericRoom r) : base() { Stock = new Resources.ResourceStock(r, ConfigManager.S.Config.FactoryStorageMaxSize); Formula = ConfigManager.S.Config.Formulas[0]; req = new Requirement(r, Formula.Input.Select(x => new ResourceInfo() { Type = x, Amount = ConfigManager.S.Config.NbOfResourcePerTransportation }).ToArray(), true); if (r != null) { r.Requirement = req; } }
public MiningRoom(GenericRoom r) : base() { Stock = new Resources.ResourceStock(r, ConfigManager.S.Config.MiningStorageMaxSize); }
public ReceptionRoom(GenericRoom r) : base() { Stock = new Resources.ResourceStock(r, ConfigManager.S.Config.StartingResources.Select(x => x.Amount).Sum()); }