Exemplo n.º 1
0
    public ResourceJobObj AddJob(JobDef newJobDef, BuildingObj bldg)
    {
        ResourceJobObj newJobObj = new ResourceJobObj(newJobDef, bldg);

        newJobObj.UpdateBonuses(jobBonusList);
        jobList.Add(newJobObj);
        return(newJobObj);
    }
Exemplo n.º 2
0
    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);
    }