mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 03:54:41 +00:00
1f32412e8d
checked for missing, redundant and duplicates classes, Removed 'Fire' no tech uses it and classification value is zero
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
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: Animal, Centurion, Gladiator, Hero, Mercenary, Minister, Juggernaut, ScoutShip, WarDog'>" +
|
|
"<text/>" +
|
|
"</element>" +
|
|
"<optional>" +
|
|
"<element name='MatchLimit' a:help='Specifies how many times this entity can be trained during a match.'>" +
|
|
"<data type='positiveInteger'/>" +
|
|
"</element>" +
|
|
"</optional>";
|
|
|
|
TrainingRestrictions.prototype.Init = function()
|
|
{
|
|
};
|
|
|
|
TrainingRestrictions.prototype.Serialize = null;
|
|
|
|
TrainingRestrictions.prototype.GetCategory = function()
|
|
{
|
|
return this.template.Category;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_TrainingRestrictions, "TrainingRestrictions", TrainingRestrictions);
|