overte-thingvellir/tests/script-engine/src/networked_tests/005b_included.js
Dale Glass 02a0e33e95 Add NETWORKLESS_TEST_SCRIPT type to NetworkManager.
This is a slightly hacky way to make ScriptManager work without any
networking, and minimize the number of dependencies needed to run
a test.
2023-05-19 00:17:38 +02:00

23 lines
523 B
JavaScript

"use strict";
function functionInInclude() {
print("Function in include");
functionInMainFile();
}
var TestObject = function(shouldUseEditTabletApp) {
var requireTest = Script.require("http://oaktown.pl/scripts/004b_require_module.js");
var onEvent = function(data) {
that.thatFunction();
}
var that = {};
that.thatFunction = function() {
functionInMainFile();
}
Script.update.connect(onEvent);
}
functionInMainFile();
//Script.setInterval(functionInInclude, 1000);