mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 05:44:08 -07:00
33 lines
631 B
JavaScript
33 lines
631 B
JavaScript
function HotloadA() {}
|
|
|
|
HotloadA.prototype.Init = function() {
|
|
this.x = +this.template.x;
|
|
};
|
|
|
|
HotloadA.prototype.GetX = function() {
|
|
return this.x;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "HotloadA", HotloadA);
|
|
|
|
|
|
function HotloadB() {}
|
|
|
|
HotloadB.prototype.Init = function() {
|
|
this.x = +this.template.x;
|
|
};
|
|
|
|
HotloadB.prototype.GetX = function() {
|
|
return this.x*2;
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "HotloadB", HotloadB);
|
|
|
|
|
|
function HotloadC() {}
|
|
|
|
Engine.RegisterInterface("HotloadInterface");
|
|
Engine.RegisterComponentType(IID_HotloadInterface, "HotloadC", HotloadC);
|
|
|
|
|
|
Engine.RegisterGlobal("HotloadGlobal", 1);
|