Home › Lua API › GameEconomicManager

Available out of the box. Usable from Lua in the unmodified game.

GameEconomicManager

13 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
CanHaveCorporation GameEconomicManager:CanHaveCorporation(ePlayer: integer[PlayerTypes], eResource: integer[ResourceTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
ui-cache — 0xdfa0 0xdeb0
CanHaveIndustry GameEconomicManager:CanHaveIndustry(ePlayer: integer[PlayerTypes], eResource: integer[ResourceTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
ui-cache — 0xe020 0xdf30
GetCorporationName GameEconomicManager:GetCorporationName(eResource: string/number[ResourceTypes], arg2: string/number) → string
args: eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).; arg2 — A count or amount (named count / num / amount in the scripts). (inferred)
ui-cache — 0xe0a0 0xdfb0
GetMapResources GameEconomicManager:GetMapResources() → number[] ui-cache — 0xe160 0xe070
GetNumControlledResources GameEconomicManager:GetNumControlledResources(ePlayer: string/number[PlayerTypes], eResource: string/number[ResourceTypes]) → number
args: ePlayer — Id of a player (as in Players[id]).; eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
ui-cache — 0xe250 0xe160
GetPlayerCorporations GameEconomicManager:GetPlayerCorporations(pkBuffer: string/number[PlayerTypes]) → 1 values ⚠
args: pkBuffer — Id of a player (as in Players[id]).
ui-cache — 0xe2d0 0xe1e0
GetPlayerIndustries GameEconomicManager:GetPlayerIndustries(pkBuffer: string/number[PlayerTypes]) → 1 values ⚠
args: pkBuffer — Id of a player (as in Players[id]).
ui-cache — 0xe3d0 0xe2e0
GetResourceMonopolyPlayer GameEconomicManager:GetResourceMonopolyPlayer(eResource: string/number[ResourceTypes]) → number (PlayerTypes)
args: eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
returns: Id of a player (as in Players[id]).
ui-cache — 0xe4d0 0xe3e0
HasCorporation GameEconomicManager:HasCorporation(ePlayer: integer[PlayerTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).
ui-cache — 0xe540 0xe450
HasCorporationOf GameEconomicManager:HasCorporationOf(ePlayer: integer[PlayerTypes], eResource: integer[ResourceTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
ui-cache — 0xe5a0 0xe4b0
HasIndustry GameEconomicManager:HasIndustry(ePlayer: integer[PlayerTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).
ui-cache — 0xe620 0xe530
HasIndustryOf GameEconomicManager:HasIndustryOf(ePlayer: integer[PlayerTypes], eResource: integer[ResourceTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
ui-cache — 0xe680 0xe590
IsResourceMonopoly GameEconomicManager:IsResourceMonopoly(eResource: string/number[ResourceTypes]) → number
args: eResource — Index of a row of the Resources table (the value of GameInfo.Resources[...].Index).
ui-cache — 0xe700 0xe610