Skip to content

Instantly share code, notes, and snippets.

@eropple
Created February 16, 2014 09:47
Show Gist options
  • Save eropple/9031887 to your computer and use it in GitHub Desktop.
Save eropple/9031887 to your computer and use it in GitHub Desktop.
Example of Anaeax scripting/mod support
//% root!Maps/Scripts/TestMap.js
(function() {
var a = init;
init = function() {
LOGGER.info("I'm an override function for " + MAP.titleName);
a();
}
})();
//% Scripts/testinclude.js
var init = function() {
testFunction();
LOGGER.info("doInit for " + MAP.titleName);
};
var testFunction = function() {
LOGGER.info("testFunction");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment