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

12 lines
462 B
JavaScript

Engine.RegisterInterface("Foundation");
// Message sent from Foundation to its own entity when construction
// has been completed.
// Units can watch for this and change task once it's complete.
// Data: { entity: 123, newentity: 234 }
Engine.RegisterMessageType("ConstructionFinished");
// Message of the form { "to", 59 }, as the percentage complete
// sent whenever the foundations progress changes.
Engine.RegisterMessageType("FoundationProgressChanged");