added buybackShares, sellShares and bulkPurchase

This commit is contained in:
phyzical
2022-01-17 18:03:29 +08:00
parent b742fae1c6
commit d50e199171
6 changed files with 153 additions and 95 deletions

View File

@@ -6239,6 +6239,14 @@ export interface WarehouseAPI {
* @param amt - Amount of material to buy
*/
buyMaterial(divisionName: string, cityName: string, materialName: string, amt: number): void;
/**
* Set material to bulk buy
* @param divisionName - Name of the division
* @param cityName - Name of the city
* @param materialName - Name of the material
* @param amt - Amount of material to buy
*/
bulkPurchase(divisionName: string, cityName: string, materialName: string, amt: number): void;
/**
* Get warehouse data
* @param divisionName - Name of the division
@@ -6479,6 +6487,14 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
* @param percent - Percent of profit to issue as dividends.
*/
issueDividends(percent: number): void;
/**
* Buyback Shares
*/
buyBackShares(amt: number): void;
/**
* Sell Shares
*/
sellShares(amt: number): void;
}
/**