public FieldBuilding(Vector3Int position, int constructionPoints, FieldSim field) : base(position, constructionPoints, BuildingType.FieldBuilding) { 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"); }
public FieldWindow(FieldSim field, Vector2 position) : base("Field", true) { List<string> options = new List<string>(); options.Add("Wheat"); options.Add("Cannabis"); options.Add("Cabage"); Position = position; _field = field; Dimention = new Vector2(400, 200); _cropChooser = new DropDown(new Vector2(195, 30), options, "None"); _lastSelected = _cropChooser.Selected; AddGuiComponent(_cropChooser); AddGuiComponent(new Label("Crop type:", new Vector2(20, 37))); //Components.Add(new SquareDropdown(new Vector2(10, 30), options, "None")); }
public void AddFieldSim(FieldSim field) { _fieldSims.Add(field); }
private void PlaceField() { _crops.Clear(); _fences.Clear(); // Places fences //PlaceFences(); // Places crops PlaceCrops(); FieldSim fs = new FieldSim(_crops); WorldMap.Instance.AddBuilding(new FieldBuilding(_clickedMapElement, 0, fs)); SimulationWorld.Instance.AddFieldSim(fs); }
public PlantFieldTask(FieldSim fieldSim) { Field = fieldSim; TaskType = TaskType.PlantCrop; }
public void SetActionField(FieldSim field) { _actionField = field; }