0ad/binaries/data/mods/_test.sim/simulation/components/test-modding1.js
2019-07-19 15:41:27 +00:00

13 lines
266 B
JavaScript

function Modding() {}
Modding.prototype.Schema = "<ref name='anything'/>";
Modding.prototype.Init = function() {
this.x = +this.template.x;
};
Modding.prototype.GetX = function() {
return this.x;
};
Engine.RegisterComponentType(IID_Test1, "Modding", Modding);