0ad/binaries/data/mods/public/simulation/components/interfaces/UnitAI.js

12 lines
451 B
JavaScript

Engine.RegisterInterface("UnitAI");
// Message of the form { "idle": true },
// sent whenever the unit's idle status changes.
Engine.RegisterMessageType("UnitIdleChanged");
// Message of the form { "to": "STATE.NAME" }.
// sent whenever the units changes state
Engine.RegisterMessageType("UnitAIStateChanged");
// Message of the form { "to": orderData }.
// sent whenever the units changes state
Engine.RegisterMessageType("UnitAIOrderDataChanged");