0ad/binaries/data/mods/public/simulation/components/interfaces/Capturable.js
fatherbushido a673a330a5 Fixes a typo in 8c6944f58f.
This was SVN commit r18709.
2016-09-06 13:14:51 +00:00

15 lines
517 B
JavaScript

Engine.RegisterInterface("Capturable");
/**
* Message of the form { "capturePoints": number[] }
* where "capturePoints" value is an array indexed by players id,
* sent from Capturable component.
*/
Engine.RegisterMessageType("CapturePointsChanged");
/**
* Message in the form of { "regenerating": boolean, "regenRate": number, "territoryDecay": number }
* where "regenRate" value is always zero when not decaying,
* sent from Capturable component.
*/
Engine.RegisterMessageType("CaptureRegenStateChanged");