This class provides several constants used throughout the library.
You can define these values in your hxml
or project.xml
using haxe defines,
or just set them in your code before you load any classes that implement HScriptable.
Static variables
staticappendFolder:String
The directory from which to read data append files.
Set this option by setting the POLYMOD_APPEND_FOLDER
Haxe define at compile time,
or by setting this value in your code.
staticdebug:Null<Bool>
If true, additional debug output will be provided by Polymod.
Set this option by setting the POLYMOD_DEBUG
Haxe define at compile time,
or by setting this value in your code.
staticmergeFolder:String
The directory from which to read data merge files.
Set this option by setting the POLYMOD_MERGE_FOLDER
Haxe define at compile time,
or by setting this value in your code.
staticmodIconFile:String
The file where Polymod checks for mod metadata.
Set this option by setting the POLYMOD_MOD_ICON_FILE
Haxe define at compile time,
or by setting this value in your code.
staticmodIgnoreFiles:Array<String>
The files which Polymod should ignore when loading mods. Defaults to the list of license files.
Set this option by setting the POLYMOD_MOD_IGNORE
Haxe define at compile time,
or by setting this value in your code.
staticmodMetadataFile:String
The file where Polymod checks for mod metadata.
Set this option by setting the POLYMOD_MOD_METADATA_FILE
Haxe define at compile time,
or by setting this value in your code.
staticmodPackFile:String
The file where Polymod checks for modpack definitions.
Set this option by setting the POLYMOD_MOD_PACK_FILE
Haxe define at compile time,
or by setting this value in your code.
staticrootPath:String
The base path from which scripts should be accessed.
Set this option by setting the POLYMOD_ROOT_PATH
Haxe define at compile time,
or by setting this value in your code.
staticscriptClassExt:String
The file extension for scripted class files.
Set this option by setting the POLYMOD_SCRIPT_CLASS_EXT
Haxe define at compile time,
or by setting this value in your code.
staticscriptExt:String
The file extension for script files. It is recommended to change this to .hxs
.
Set this option by setting the POLYMOD_SCRIPT_EXT
Haxe define at compile time,
or by setting this value in your code.
staticscriptLibrary:String
The asset library to use for loading scripts. Only relevant for Lime/OpenFL projects which use multiple asset libraries.
Set this option by setting the POLYMOD_SCRIPT_LIBRARY
Haxe define at compile time,
or by setting this value in your code.
staticuseNamespaceInPaths:Null<Bool>
Whether script paths should, by default, be relative to the class's path or the root path.
For example, if true, demo.Simulation#updateBee
will use data/demo/Simulation/updateBee.txt
If false, demo.Simulation#updateBee
will use data/updateBee.txt
Set this option by setting the POLYMOD_USE_NAMESPACE
Haxe define at compile time,
or by setting this value in your code.