Ykkrosh
7c2e9027c2
Giant merge from http://svn.wildfiregames.com/hg-source/file/5fb522019d5e Infrastructure is largely complete, gameplay is largely missing Disabled by default; use command-line flag "-sim2" (Second attempt at commit...) This was SVN commit r7259.
23 lines
438 B
JavaScript
23 lines
438 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); |