mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
Reviewed By: wraitii Differential Revision: https://code.wildfiregames.com/D1850 This was SVN commit r22513.
35 lines
686 B
JavaScript
35 lines
686 B
JavaScript
function HotloadA() {}
|
|
|
|
HotloadA.prototype.Schema = "<ref name='anything'/>";
|
|
|
|
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);
|