forked from mirrors/0ad
c0c19db94e
This was SVN commit r17302.
22 lines
726 B
JavaScript
22 lines
726 B
JavaScript
function TrainingRestrictions() {}
|
|
|
|
TrainingRestrictions.prototype.Schema =
|
|
"<a:help>Specifies unit training restrictions, currently only unit category</a:help>" +
|
|
"<a:example>" +
|
|
"<TrainingRestrictions>" +
|
|
"<Category>Hero</Category>" +
|
|
"</TrainingRestrictions>" +
|
|
"</a:example>" +
|
|
"<element name='Category' a:help='Specifies the category of this unit, for satisfying special constraints. Choices include: Hero, FemaleCitizen, WarDog'>" +
|
|
"<text/>" +
|
|
"</element>";
|
|
|
|
TrainingRestrictions.prototype.Serialize = null;
|
|
|
|
TrainingRestrictions.prototype.GetCategory = function()
|
|
{
|
|
return this.template.Category;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_TrainingRestrictions, "TrainingRestrictions", TrainingRestrictions);
|