0ad/binaries/data/mods/public/simulation/components/interfaces/Messages.js
leper 2c5cddd684 Move message registrations to the right file.
Refs #4161.
Reviewed by: fatherbushido
This was SVN commit r18646.
2016-08-27 15:26:54 +00:00

18 lines
740 B
JavaScript

/**
* Message of the form { "entity": number, "newentity": number }
* sent when one entity is changed to another:
* - from Foundation component when a building construction is done
* - from Formation component
* - from Health component when an entity died and should remain as a resource
* - from Promotion component when a unit is promoted
* - from Mirage component when a fogged entity is re-discovered
* - from SkirmishReplacer component when a skirmish entity has been replaced
* - from Transform helper when an entity has been upgraded
*/
Engine.RegisterMessageType("EntityRenamed");
/**
* Message of the form {}
* sent from InitGame for component map-dependent initialization.
*/
Engine.RegisterMessageType("InitGame");