0ad/binaries/data/mods/public/simulation/components/Wonder.js

18 lines
339 B
JavaScript

function Wonder() {}
Wonder.prototype.Schema =
"<element name='TimeTillVictory'>" +
"<data type='nonNegativeInteger'/>" +
"</element>";
Wonder.prototype.Init = function()
{
};
Wonder.prototype.GetTimeTillVictory = function()
{
return +this.template.TimeTillVictory;
};
Engine.RegisterComponentType(IID_Wonder, "Wonder", Wonder);