21 lines
411 B
JavaScript
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);
|