mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 22:03:56 -07:00
Summary: In regicide, data.garrisonEmergency was not reset when retreating a hero to a base when the hero couldn't find a place to garrison. Transfer the stance info to the AI Reviewed By: mimo Differential Revision: https://code.wildfiregames.com/D515 This was SVN commit r19614.
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
Engine.RegisterInterface("UnitAI");
|
|
|
|
/**
|
|
* Message of the form { "idle": boolean }
|
|
* sent from UnitAI whenever the unit's idle status changes.
|
|
*/
|
|
Engine.RegisterMessageType("UnitIdleChanged");
|
|
|
|
/**
|
|
* Message of the form { "to": string }
|
|
* where "to" value is a UnitAI stance,
|
|
* sent from UnitAI whenever the unit's stance changes.
|
|
*/
|
|
Engine.RegisterMessageType("UnitStanceChanged");
|
|
|
|
/**
|
|
* Message of the form { "to": string }
|
|
* where "to" value is a UnitAI state,
|
|
* sent from UnitAI whenever the unit changes state.
|
|
*/
|
|
Engine.RegisterMessageType("UnitAIStateChanged");
|
|
|
|
/**
|
|
* Message of the form { "to": number[] }
|
|
* where "to" value is an array of data orders given by GetOrderData,
|
|
* sent from UnitAI whenever the unit order data changes.
|
|
*/
|
|
Engine.RegisterMessageType("UnitAIOrderDataChanged");
|
|
|
|
/**
|
|
* Message of the form { "entity": number }
|
|
* sent from UnitAI whenever a pickup is requested.
|
|
*/
|
|
Engine.RegisterMessageType("PickupRequested");
|
|
|
|
/**
|
|
* Message of the form { "entity": number }
|
|
* sent from UnitAI whenever a pickup is aborted.
|
|
*/
|
|
Engine.RegisterMessageType("PickupCanceled");
|