0ad/binaries/data/mods/_test.sim/simulation/components/test-hotload2.js
2010-01-24 17:24:35 +00:00

21 lines
411 B
JavaScript

function HotloadA() {}
HotloadA.prototype.Init = function() {
this.x = +this.template.x;
};
HotloadA.prototype.GetX = function() {
return this.x*10;
};
Engine.RegisterComponentType(IID_Test1, "HotloadA", HotloadA);
function HotloadC() {}
Engine.RegisterInterface("HotloadInterface");
Engine.RegisterComponentType(IID_HotloadInterface, "HotloadC", HotloadC);
Engine.RegisterGlobal("HotloadGlobal", 2);