function Identity() {} Identity.prototype.Schema = "Specifies various names and values associated with the unit type, typically for GUI display to users." + "" + "hele" + "Infantry Spearman" + "Hoplite" + "3" + "PortraitSheet" + "" + "" + "" + "gaia" + "cart" + "celt" + "hele" + "iber" + "pers" + "rome" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "Basic" + "Advanced" + "Elite" + "" + "" + "" + "" + "" + "" + "tokens" + "" + "" + "" + "" + "Organic" + "Foot" + "Mounted" + "Mechanical" + "Super" + "Hero" + "Structure" + "Civic" + "Economic" + "Defensive" + "Village" + "Town" + "City" + "ConquestCritical" + "Bow" + // TODO: what are these used for? "Javelin" + "Spear" + "Sword" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + ""; Identity.prototype.Init = function() { }; Identity.prototype.GetCiv = function() { return this.template.Civ; }; Identity.prototype.GetRank = function() { if (this.template.Rank) return this.template.Rank; return ""; }; Identity.prototype.GetClassesList = function() { if (this.template.Classes) { var string = this.template.Classes._string; return string.split(/\s+/); } else { return []; } }; Engine.RegisterComponentType(IID_Identity, "Identity", Identity);