Created
February 16, 2014 09:47
-
-
Save eropple/9031887 to your computer and use it in GitHub Desktop.
Example of Anaeax scripting/mod support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//% root!Maps/Scripts/TestMap.js | |
(function() { | |
var a = init; | |
init = function() { | |
LOGGER.info("I'm an override function for " + MAP.titleName); | |
a(); | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//% Scripts/testinclude.js | |
var init = function() { | |
testFunction(); | |
LOGGER.info("doInit for " + MAP.titleName); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testFunction = function() { | |
LOGGER.info("testFunction"); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment