Mod API Reference:TerritoryStanding: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
No edit summary
DanWL60 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
* '''NumArmies''' ''[[Mod API Reference:Armies|Armies]]'': Number of armies on the territory.
* '''NumArmies''' ''[[Mod API Reference:Armies|Armies]]'': Number of armies on the territory.
* '''OwnerPlayerID''' ''[[Mod API Reference:PlayerID|PlayerID]]'': Who owns the territory.
* '''OwnerPlayerID''' ''[[Mod API Reference:PlayerID|PlayerID]]'': Who owns the territory.
* '''Structures''' ''Table<[[Mod API Reference:StructureType|StructureType]] (enum),integer>'': Structures built on the territory, such as [[cities]].  Note that this can be nil to represent that no structures exist on the territory.
[[Category:Mod API Reference]]

Latest revision as of 17:33, 4 December 2018

TerritoryStanding: Stores who owns a territory, how many armies are on it, and how visible it is.

  • FogLevel StandingFogLevel (enum): How visible the territory is. On the server, it's always fully visible, but may be obscured if accessing this from a client.
  • ID TerritoryID: ID of the territory.
  • IsNeutral boolean: True if it's owned by neutral (alias for accessing OwnerPlayerID == PlayerID.Neutral)
  • NumArmies Armies: Number of armies on the territory.
  • OwnerPlayerID PlayerID: Who owns the territory.
  • Structures Table<StructureType (enum),integer>: Structures built on the territory, such as cities. Note that this can be nil to represent that no structures exist on the territory.