Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

MagicFunctions

Source

boolean compiletime

Source

this is a magic constant. It is always false at runtime and true during compiletime.

function callFunctionsWithAnnotation(string _annotation)

Source

builtin magic function. Calls all functions with the given annotation, for example `callFunctionsWithAnnotation("@initializeObject")`. The called functions must not take any parameters.

function compileError(string msg)

Source

Stops compilation with the provided error message

function compiletime(T expr) returns T

Source

This is a builtin magic function. It evaluates it's argument at compiletime and replaces the call with the result.

function getBuildDate() returns string

Source

Returns the build date in uuuu-MM-dd'T'HH:mm format

function getMapName() returns string

Source

Returns the map name from wurst.build file

function getStackTraceString() returns string

Source

builtin function which returns a stack trace. If stack traces are disabled, this function returns the empty string.

function isProductionBuild() returns boolean

Source

Returns true if the map is being built using the 'buildmap' command, false otherwise.