public IndoorFieldBuilding(Vector3Int position, int constructionPoints, IndoorFieldSim field) : base(position, constructionPoints, BuildingType.IndoorFieldBuilding) { SetDimentions(new Vector3Int(1, 1, 1)); _field = field; NeededConstructionPoints = 100; NeededForConstruction = new Dictionary<MapElementType, int>(); NeededForConstruction.Add(MapElementType.Lumber, 2); NeededForConstruction.Add(MapElementType.Stone, 2); _texture = WorldMap.Instance.GetContent().Load<Texture2D>("transparent"); }
private void PlaceIndoorField() { _crops = new List<GameMono.CropBase>(); _fences = new List<WorldObjects.Fence>(); PlaceCrops(); IndoorFieldSim fs = new IndoorFieldSim(_crops); Building b = new IndoorFieldBuilding(_clickedMapElement, 0, fs); fs.AssociatedBuilding = b; WorldMap.Instance.AddBuilding(b); SimulationWorld.Instance.AddFieldSim(fs); }