Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/_test.sim/simulation/components/test-hotload1.js
Show All 10 Lines | |||||
}; | }; | ||||
Engine.RegisterComponentType(IID_Test1, "HotloadA", HotloadA); | Engine.RegisterComponentType(IID_Test1, "HotloadA", HotloadA); | ||||
function HotloadB() {} | function HotloadB() {} | ||||
HotloadB.prototype.Init = function() { | HotloadB.prototype.Init = function() { | ||||
this.x = +this.template.x; | this.x = +this.template.x; | ||||
}; | }; | ||||
HotloadB.prototype.GetX = function() { | HotloadB.prototype.GetX = function() { | ||||
return this.x*2; | return this.x*2; | ||||
Stan: Missing spaces. | |||||
ItmsAuthorUnsubmitted Done Inline ActionsSure I'll change that. Itms: Sure I'll change that. | |||||
}; | }; | ||||
Engine.RegisterComponentType(IID_Test1, "HotloadB", HotloadB); | Engine.RegisterComponentType(IID_Test1, "HotloadB", HotloadB); | ||||
function HotloadC() {} | function HotloadC() {} | ||||
Engine.RegisterInterface("HotloadInterface"); | Engine.RegisterInterface("HotloadInterface"); | ||||
Engine.RegisterComponentType(IID_HotloadInterface, "HotloadC", HotloadC); | Engine.RegisterComponentType(IID_HotloadInterface, "HotloadC", HotloadC); | ||||
Engine.RegisterGlobal("HotloadGlobal", 1); | Engine.RegisterGlobal("HotloadGlobal", 1); |
Wildfire Games · Phabricator
Missing spaces.