Пример #1
0
 public InventoryDatabase(UnityViewFactory viewFac)
 {
     Wood          = new InventoryType("Wood", 10, false, "This is wood", () => viewFac.GetWoodVisualization());
     Stone         = new InventoryType("Stone", 10, false, "This is stone", () => viewFac.GetStoneVisualization());
     BrownMushroom = new InventoryType("BrownMushroom", 10, false, "This is a brown mushroom", () => viewFac.GetBrownMushroomVisualization(0));
     Grass         = new InventoryType("Grass", 10, false, "This is a bunch o grass", () => viewFac.GetGrassVisualization(0));
 }
Пример #2
0
        public WorldBuilder(UnitBuilder uBuilder, BuildingBuilder bBuilder, UnityViewFactory viewFac, InventoryDatabase inventoryDatabase)
        {
            this.uBuilder = uBuilder;

            this.bBuilder          = bBuilder;
            this.viewFac           = viewFac;
            this.inventoryDatabase = inventoryDatabase;
        }
Пример #3
0
 public UnitBuilder(IslandElementFactory elemFac, UnityViewFactory unityViewFactory, InventoryDatabase inventoryDb)
 {
     this.elemFac     = elemFac;
     this.viewFac     = unityViewFactory;
     this.inventoryDb = inventoryDb;
 }