mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 12:52:36 +00:00
5741f77c6e
Remove the world population setting from the game setup. Add a dropdown for choosing the "Population Cap Type". (-> containing Player Population, World Population, Team Population) Use a single "Population Cap" dropdown adapting to the pop cap types. Move all population data into a single .json file. New system component "PopulationCapManager" for distributing pop caps. Resolves: #6918
14 lines
459 B
JavaScript
14 lines
459 B
JavaScript
Engine.RegisterInterface("Diplomacy");
|
|
|
|
/**
|
|
* Message of the form { "player": number, "otherPlayer": number }
|
|
* sent from Diplomacy component when diplomacy changed for one player or between two players.
|
|
*/
|
|
Engine.RegisterMessageType("DiplomacyChanged");
|
|
|
|
/**
|
|
* Message of the form { "player": number, "oldTeam": number, "newTeam", number }
|
|
* sent from the Diplomacy component when a player switches teams.
|
|
*/
|
|
Engine.RegisterMessageType("TeamChanged");
|