2010-01-09 11:20:14 -08:00
|
|
|
function HotloadA() {}
|
|
|
|
|
|
2010-04-14 10:22:32 -07:00
|
|
|
HotloadA.prototype.Schema = "<ref name='anything'/>";
|
|
|
|
|
|
2025-12-30 00:57:37 -08:00
|
|
|
HotloadA.prototype.Init = function()
|
|
|
|
|
{
|
2010-01-09 11:20:14 -08:00
|
|
|
this.x = +this.template.x;
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-30 00:57:37 -08:00
|
|
|
HotloadA.prototype.GetX = function()
|
|
|
|
|
{
|
2010-01-09 11:20:14 -08:00
|
|
|
return this.x;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "HotloadA", HotloadA);
|
|
|
|
|
|
2010-01-24 09:24:35 -08:00
|
|
|
|
2010-01-09 11:20:14 -08:00
|
|
|
function HotloadB() {}
|
|
|
|
|
|
2025-12-30 00:57:37 -08:00
|
|
|
HotloadB.prototype.Init = function()
|
|
|
|
|
{
|
2019-07-19 08:41:27 -07:00
|
|
|
this.x = +this.template.x;
|
2010-01-09 11:20:14 -08:00
|
|
|
};
|
|
|
|
|
|
2025-12-30 00:57:37 -08:00
|
|
|
HotloadB.prototype.GetX = function()
|
|
|
|
|
{
|
2019-07-19 08:41:27 -07:00
|
|
|
return this.x * 2;
|
2010-01-09 11:20:14 -08:00
|
|
|
};
|
|
|
|
|
|
2010-01-24 09:24:35 -08:00
|
|
|
Engine.RegisterComponentType(IID_Test1, "HotloadB", HotloadB);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function HotloadC() {}
|
|
|
|
|
|
|
|
|
|
Engine.RegisterInterface("HotloadInterface");
|
|
|
|
|
Engine.RegisterComponentType(IID_HotloadInterface, "HotloadC", HotloadC);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Engine.RegisterGlobal("HotloadGlobal", 1);
|