Mod API Reference:GameStanding: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
* '''Cards''' ''Table<[[Mod API Reference:PlayerID|PlayerID]],[[Mod API Reference:PlayerCards|PlayerCards]]>'': Cards each player has.
* '''Cards''' ''Table<[[Mod API Reference:PlayerID|PlayerID]],[[Mod API Reference:PlayerCards|PlayerCards]]>'': Cards each player has.
* '''Territories''' ''Table<[[Mod API Reference:TerritoryID|TerritoryID]],[[Mod API Reference:TerritoryStanding|TerritoryStanding]]>'': Who owns each territory and how many armies are on it.
* '''Territories''' ''Table<[[Mod API Reference:TerritoryID|TerritoryID]],[[Mod API Reference:TerritoryStanding|TerritoryStanding]]>'': Who owns each territory and how many armies are on it.
* '''Resources''' ''Table<[[Mod API Reference:PlayerID|PlayerID]],Table<[[Mod API Reference:ResourceType|ResourceType]] (enum),integer>>'':


== Functions ==
== Functions ==


* '''NumResources'''('''playerID''' ''[[Mod API Reference:PlayerID|PlayerID]]'', '''type''' ''[[Mod API Reference:ResourceType|ResourceType]] (enum)'') returns integer:  Determines how many resources, such as gold in a commerce game, the passed player has (or had at this point in time if this standing is from history)
* '''NumResources'''('''playerID''' ''[[Mod API Reference:PlayerID|PlayerID]]'', '''type''' ''[[Mod API Reference:ResourceType|ResourceType]] (enum)'') returns integer:  Determines how many resources, such as gold in a commerce game, the passed player has (or had at this point in time if this standing is from history)
[[Category:Mod API Reference]]

Latest revision as of 14:36, 16 June 2024

GameStanding: Represents the state of a game's map at a single point in time. This describes who owns each territory, how many armies/special units are on it, what cards each player has, and what cards are in effect.

Functions

  • NumResources(playerID PlayerID, type ResourceType (enum)) returns integer: Determines how many resources, such as gold in a commerce game, the passed player has (or had at this point in time if this standing is from history)