2010-02-05 23:00:39 +01:00
|
|
|
Engine.RegisterInterface("UnitAI");
|
2011-02-05 21:35:34 +01:00
|
|
|
|
|
|
|
// Message of the form { "idle": true },
|
|
|
|
// sent whenever the unit's idle status changes.
|
|
|
|
Engine.RegisterMessageType("UnitIdleChanged");
|
2012-05-09 14:14:22 +02:00
|
|
|
|
2012-04-04 22:23:41 +02:00
|
|
|
// Message of the form { "to": "STATE.NAME" }.
|
2012-05-09 14:14:22 +02:00
|
|
|
// sent whenever the unit changes state
|
2012-04-04 22:23:41 +02:00
|
|
|
Engine.RegisterMessageType("UnitAIStateChanged");
|
2012-05-09 14:14:22 +02:00
|
|
|
|
2012-04-04 22:23:41 +02:00
|
|
|
// Message of the form { "to": orderData }.
|
2012-05-09 14:14:22 +02:00
|
|
|
// sent whenever the unit changes state
|
2012-04-04 22:23:41 +02:00
|
|
|
Engine.RegisterMessageType("UnitAIOrderDataChanged");
|