arco
The main module of libarcomage. Initialisation, configuration, contact with frontends and other important functions are here. Most code is in arcomage.cards though.
The main Lua state.
Lua initialisation. Normally, LuaD handles everything for us - this is just additional content specific to our libary.
Attempts to find a file in default directories. This is to be compliant with XDG.
File: filename to search for (empty to search for a directory only)
Subdirectories: What subdirs to look at in /usr/share and .local/share
CustomTests: Some additional directories these files could be found in
OverrideVariable: What environment variable overrides the path
string FindResource(string File, string Subdirectories);
Overload helper for FindConfig
Dummy functions for initialising the frontend function struct.
The main initialisation function. This needs to be called from the frontend to initialise the game.
Note: Do not forget to call rt_init() if interfacing from C.