void StartJobButton(JobDef jobSelected) { thisBuilding = BuildingQueries.ByLocation(ManagerBase.domain.buildings, new Vector2Int(iLoc, jLoc)); // Update the building here ResourceJobObj newJob = jobManager.AddJob(jobSelected, thisBuilding); ResourceQuantityQualityList jobResources = resourceChoiceDropdown.GetCurrentChoices(); newJob.SetResources(jobResources); newJob.StartJob(); newJob.AddWorker(); newJob.AddWorker(); FocusOnTile(iLoc, jLoc); }
public void FocusOnTile(int i, int j) { // Set Location iLoc = i; jLoc = j; // Delete buttons ClearUIObjects(); // Surface Panel if (SetSurfacePanel(i, j)) { thisBuilding = BuildingQueries.ByLocation(ManagerBase.domain.buildings, new Vector2Int(iLoc, jLoc)); // Get the building here } // Ground Panel SetGroundPanel(i, j); // Underground Panel SetUndergroundPanel(i, j); // Draw Jobs up from the bottom DrawActiveJobs(i, j); }