Exemple #1
0
        internal BaseManufacturerBuilding(ManufacturingBuildingDef def, string layerName, MapSpot anchor, IMapController controller, MapRotation rotation)
            : base(def, layerName, anchor, controller, rotation)
        {
            _manufacturingBuildingDef = def ?? throw new ArgumentNullException(nameof(def));

            _outputInventory      = new DefaultInventory(GameMaster.Instance.GetController <IItemController>(), this, _manufacturingBuildingDef.OutputConfig);
            _inputInventory       = new DefaultInventory(GameMaster.Instance.GetController <IItemController>(), this, _manufacturingBuildingDef.InputConfig);
            _currentCraftingState = null;
        }
Exemple #2
0
 public DefaultManufacturingBuilding(ManufacturingBuildingDef def, string layerName, MapSpot anchor, IMapController controller, MapRotation rotation) :
     base(def, layerName, anchor, controller, rotation)
 {
 }