Module twdll.core

Utility functions available in all games.

Functions

GameBuild () Returns the target game build name (e.g.
GetBuildSha () Returns the git commit SHA hash from which the DLL was compiled.
Log (...) Log a message or arbitrary values to twdll.log.


Functions

GameBuild ()
Returns the target game build name (e.g. "Attila").

Returns:

    string game name

Usage:

    local game_name = twdll.core.GameBuild()
GetBuildSha ()
Returns the git commit SHA hash from which the DLL was compiled.

Returns:

    string 40-character hexadecimal git commit SHA

Usage:

    local sha = twdll.core.GetBuildSha()
Log (...)
Log a message or arbitrary values to twdll.log. Accepts any number of arguments of any type, converting them via Lua tostring.

Parameters:

  • ... any values to log

Usage:

    twdll.core.Log("Campaign initialized. Turn:", 1, "Faction:", faction:name())
generated by LDoc 1.5.0