0ad/binaries/data/mods/public/simulation/components/interfaces/ResourceSupply.js

10 lines
356 B
JavaScript

Engine.RegisterInterface("ResourceSupply");
// Message of the form { "from": 100, "to", 90 },
// sent whenever supply level changes.
Engine.RegisterMessageType("ResourceSupplyChanged");
// Message of the form { "to", [array of gatherers ID] },
// sent whenever the number of gatherer changes
Engine.RegisterMessageType("ResourceSupplyGatherersChanged");