1
0
forked from 0ad/0ad
0ad/binaries/data/mods/public/simulation/components/interfaces/TrainingQueue.js
2011-02-05 20:35:34 +00:00

10 lines
413 B
JavaScript

Engine.RegisterInterface("TrainingQueue");
// Message of the form { } (use GetQueue if you want the current details),
// sent to the current entity whenever the training queue changes.
Engine.RegisterMessageType("TrainingQueueChanged");
// Message of the form { entities: [id, ...], metadata: ... }
// sent to the current entity whenever a unit has been trained.
Engine.RegisterMessageType("TrainingFinished");