Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/interfaces/UnitAI.js
Engine.RegisterInterface("UnitAI"); | Engine.RegisterInterface("UnitAI"); | ||||
/** | /** | ||||
* Message of the form { "idle": boolean } | * Message of the form { "idle": boolean } | ||||
* sent from UnitAI whenever the unit's idle status changes. | * sent from UnitAI whenever the unit's idle status changes. | ||||
*/ | */ | ||||
Engine.RegisterMessageType("UnitIdleChanged"); | Engine.RegisterMessageType("UnitIdleChanged"); | ||||
/** | /** | ||||
* Message of the form { "ableToMove": boolean } | |||||
* sent from UnitAI whenever the unit's ability to move changes. | |||||
*/ | |||||
Engine.RegisterMessageType("UnitAbleToMoveChanged"); | |||||
/** | |||||
* Message of the form { "to": string } | * Message of the form { "to": string } | ||||
* where "to" value is a UnitAI stance, | * where "to" value is a UnitAI stance, | ||||
* sent from UnitAI whenever the unit's stance changes. | * sent from UnitAI whenever the unit's stance changes. | ||||
*/ | */ | ||||
Engine.RegisterMessageType("UnitStanceChanged"); | Engine.RegisterMessageType("UnitStanceChanged"); | ||||
/** | /** | ||||
* Message of the form { "to": string } | * Message of the form { "to": string } | ||||
Show All 23 Lines |
Wildfire Games · Phabricator