forked from 0ad/0ad
historic_bruno
99d04e93bb
Applies tech modifications to template data returned by GuiInterface. Extends engine to load arbitrary global scripts, separates this from RNG replacement. Refs #1193. Loads global scripts for most script contexts for consistency. Adds simulation tests for global scripts. This was SVN commit r12056.
9 lines
234 B
JavaScript
9 lines
234 B
JavaScript
function TestScript1_GlobalHelper() {}
|
|
|
|
TestScript1_GlobalHelper.prototype.GetX = function()
|
|
{
|
|
return GlobalSubtractionHelper(1, -1);
|
|
};
|
|
|
|
Engine.RegisterComponentType(IID_Test1, "TestScript1_GlobalHelper", TestScript1_GlobalHelper);
|