Add investments to the api

This commit is contained in:
pigalot
2022-01-13 11:42:23 +00:00
parent 1b8c715a5e
commit 2269f79b15
4 changed files with 91 additions and 28 deletions

View File

@@ -6383,6 +6383,18 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
* @returns cost
*/
getExpandCityCost(): number;
/**
* Get an offer for investment based on you companies current valuation
* @returns An offer of investment
*/
getInvestmentOffer(): InvestmentOffer;
/**
* Accept investment based on you companies current valuation
* @remarks
* Is based on current valuation and will not honer a specific Offer
* @returns An offer of investment
*/
acceptInvestmentOffer(): boolean;
/**
* Get corporation data
* @returns Corporation data
@@ -6597,6 +6609,19 @@ interface Division {
cities: string[];
}
/**
* Corporation investment offer
* @public
*/
interface InvestmentOffer {
/** Amount of funds you will get from this investment */
funds: number;
/** Amount of share you will give in exchange for this investment */
shares: number;
/** Current round of funding (max 4) */
round: number;
}
/**
* Interface Theme
* @internal