Differential D4333 Diff 19020 ps/trunk/binaries/data/mods/public/simulation/components/interfaces/ProductionQueue.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/interfaces/ProductionQueue.js
Engine.RegisterInterface("ProductionQueue"); | Engine.RegisterInterface("ProductionQueue"); | ||||
/** | /** | ||||
* Message of the form {} | * Message of the form {} | ||||
* sent from ProductionQueue component to the current entity whenever the training queue changes. | * sent from ProductionQueue component to the current entity whenever the training queue changes. | ||||
*/ | */ | ||||
Engine.RegisterMessageType("ProductionQueueChanged"); | Engine.RegisterMessageType("ProductionQueueChanged"); | ||||
/** | |||||
* Message of the form { "entity": number } | |||||
* sent from ProductionQueue component to the current entity whenever a unit is about to be trained. | |||||
*/ | |||||
Engine.RegisterMessageType("TrainingStarted"); | |||||
/** | |||||
* Message of the form { "entities": number[], "owner": number, "metadata": object } | |||||
* sent from ProductionQueue component to the current entity whenever a unit has been trained. | |||||
*/ | |||||
Engine.RegisterMessageType("TrainingFinished"); |
Wildfire Games · Phabricator