1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/simulation/components/Wonder.js
T
2015-11-28 08:27:41 +00:00

20 lines
375 B
JavaScript

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