forked from 0ad/0ad
10 lines
356 B
JavaScript
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");
|