function ResourceDropsite() {} ResourceDropsite.prototype.Schema = "" + "" + "" + "" + "food" + "wood" + "stone" + "metal" + "" + "" + "" + ""; /** * Returns the list of resource types accepted by this dropsite. */ ResourceDropsite.prototype.GetTypes = function() { return this.template.Types.split(/\s+/); }; /** * Returns whether this dropsite accepts the given generic type of resource. */ ResourceDropsite.prototype.AcceptsType = function(type) { return this.GetTypes().indexOf(type) != -1; }; Engine.RegisterComponentType(IID_ResourceDropsite, "ResourceDropsite", ResourceDropsite);