Files
Vantha 5741f77c6e Add a 'team population' gamesetting
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
2025-03-06 13:25:43 +01:00

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");