Example #1
0
 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;
     }
 }
Example #2
0
 public MiningRoom(GenericRoom r) : base()
 {
     Stock = new Resources.ResourceStock(r, ConfigManager.S.Config.MiningStorageMaxSize);
 }
Example #3
0
 public ReceptionRoom(GenericRoom r) : base()
 {
     Stock = new Resources.ResourceStock(r, ConfigManager.S.Config.StartingResources.Select(x => x.Amount).Sum());
 }