function Cost() {} Cost.prototype.Schema = "Specifies the construction/training costs of this entity." + "" + "1" + "15" + "20.0" + "" + "50" + "0" + "0" + "25" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + ""; Cost.prototype.GetPopCost = function() { return +this.template.Population; }; Cost.prototype.GetPopBonus = function() { return +this.template.PopulationBonus; }; Cost.prototype.GetBuildTime = function() { return +this.template.BuildTime; } Cost.prototype.GetResourceCosts = function() { return { "food": +this.template.Resources.food, "wood": +this.template.Resources.wood, "stone": +this.template.Resources.stone, "metal": +this.template.Resources.metal }; }; Engine.RegisterComponentType(IID_Cost, "Cost", Cost);