CORPORATION: Rename setAutoJobAssignment API to setJobAssignment (#2146)

This commit is contained in:
catloversg
2025-05-23 02:42:16 +07:00
committed by GitHub
parent 47153bd31c
commit 4e5044124c
8 changed files with 63 additions and 29 deletions

View File

@@ -8906,11 +8906,16 @@ export interface OfficeAPI {
*
* @param divisionName - Name of the division
* @param city - Name of the city
* @param job - Name of the job
* @param job - Name of the job. Passing "Unassigned" will cause this API to not do anything and just return false.
* @param amount - Number of employees to assign to that job
* @returns true if the employee count reached the target amount, false if not
*/
setAutoJobAssignment(divisionName: string, city: CityName, job: string, amount: number): boolean;
setJobAssignment(
divisionName: string,
city: CityName,
job: Exclude<CorpEmployeePosition, "Unassigned">,
amount: number,
): boolean;
/**
* Get the cost to upgrade an office.