added logic to support material production limit

* added ns functions for limit production and limit material
closes #3180
This commit is contained in:
phyzical
2022-04-01 22:28:48 +08:00
parent 60f56a55ab
commit 13c486d639
5 changed files with 114 additions and 0 deletions

View File

@@ -6656,6 +6656,22 @@ export interface WarehouseAPI {
designInvest: number,
marketingInvest: number,
): void;
/**
* Limit Material Production.
* @param divisionName - Name of the division
* @param cityName - Name of the city
* @param materialName - Name of the material
* @param qty - Amount to limit to
*/
limitMaterialProduction(divisionName: string, cityName: string, materialName: string, qty: number): void;
/**
* Limit Product Production.
* @param divisionName - Name of the division
* @param cityName - Name of the city
* @param productName - Name of the product
* @param qty - Amount to limit to
*/
limitProductProduction(divisionName: string, cityName: string, productName: string, qty: number): void;
/**
* Gets the cost to purchase a warehouse
* @returns cost