mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-20 15:23:56 -07:00
17 lines
339 B
JavaScript
17 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);
|