Differential D1879 Diff 8487 ps/trunk/binaries/data/mods/public/simulation/components/TrainingRestrictions.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/TrainingRestrictions.js
function TrainingRestrictions() {} | function TrainingRestrictions() {} | ||||
TrainingRestrictions.prototype.Schema = | TrainingRestrictions.prototype.Schema = | ||||
"<a:help>Specifies unit training restrictions, currently only unit category</a:help>" + | "<a:help>Specifies unit training restrictions, currently only unit category</a:help>" + | ||||
"<a:example>" + | "<a:example>" + | ||||
"<TrainingRestrictions>" + | "<TrainingRestrictions>" + | ||||
"<Category>Hero</Category>" + | "<Category>Hero</Category>" + | ||||
"</TrainingRestrictions>" + | "</TrainingRestrictions>" + | ||||
"</a:example>" + | "</a:example>" + | ||||
"<element name='Category' a:help='Specifies the category of this unit, for satisfying special constraints. Choices include: Hero, Juggernaut, WarDog'>" + | "<element name='Category' a:help='Specifies the category of this unit, for satisfying special constraints. Choices include: Hero, Juggernaut, WarDog'>" + | ||||
"<text/>" + | "<text/>" + | ||||
"</element>"; | "</element>"; | ||||
TrainingRestrictions.prototype.Init = function() | |||||
{ | |||||
}; | |||||
TrainingRestrictions.prototype.Serialize = null; | TrainingRestrictions.prototype.Serialize = null; | ||||
TrainingRestrictions.prototype.GetCategory = function() | TrainingRestrictions.prototype.GetCategory = function() | ||||
{ | { | ||||
return this.template.Category; | return this.template.Category; | ||||
}; | }; | ||||
Engine.RegisterComponentType(IID_TrainingRestrictions, "TrainingRestrictions", TrainingRestrictions); | Engine.RegisterComponentType(IID_TrainingRestrictions, "TrainingRestrictions", TrainingRestrictions); |
Wildfire Games · Phabricator