1
0
forked from 0ad/0ad
0ad/binaries/data/mods/public/simulation/components/interfaces/ResourceGatherer.js

10 lines
376 B
JavaScript

Engine.RegisterInterface("ResourceGatherer");
// Message sent from ResourceGatherers to a ResourceSupply entity
// each time they gather resources from it
Engine.RegisterMessageType("ResourceGather");
// Message of the form { "to", [ {"type":"wood", "amount":7, "max":10} ] },
// sent whenever carrying amount changes.
Engine.RegisterMessageType("ResourceCarryingChanged");