forked from 0ad/0ad
12 lines
451 B
JavaScript
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");
|