Differential D2662 Diff 11577 binaries/data/mods/public/simulation/components/interfaces/ResourceGatherer.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/interfaces/ResourceGatherer.js
Engine.RegisterInterface("ResourceGatherer"); | Engine.RegisterInterface("ResourceGatherer"); | ||||
/** | /** | ||||
* Message of the form { "to": [{ "type": string, "amount": number, "max":number }] } | * Message of the form { "to": [{ "type": string, "amount": number, "max": number }] } | ||||
* sent from ResourceGatherer component whenever the amount of carried resources changes. | * sent from ResourceGatherer component whenever the amount of carried resources changes. | ||||
*/ | */ | ||||
Engine.RegisterMessageType("ResourceCarryingChanged"); | Engine.RegisterMessageType("ResourceCarryingChanged"); | ||||
/** | |||||
* Message of the form { "exhausted": {boolean}, "filled": {boolean} } | |||||
* sent from ResourceGatherer component whenever it has stopped gathering. | |||||
*/ | |||||
Engine.RegisterMessageType("GatheringStateChanged"); |
Wildfire Games · Phabricator