forked from 0ad/0ad
historic_bruno
2418ae190d
Removes previously implemented LimitsPerCivCentre from AI states. Removes hardcoded categories from TrainingRestrictions This was SVN commit r13950.
20 lines
676 B
JavaScript
20 lines
676 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.GetCategory = function()
|
|
{
|
|
return this.template.Category;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_TrainingRestrictions, "TrainingRestrictions", TrainingRestrictions);
|