arco
The main module of libarcomage. Initialisation, configuration, contact with frontends and other important functions are here. Most code is in arcomage.cards though.Authors:
GreatEmerald
- LuaState lua;
- The main Lua state.
- void initLua();
- Lua initialisation. Normally, LuaD handles everything for us - this is just
additional content specific to our libary.
Authors:
GreatEmerald
- string FindResource(string File, string Subdirectories, string[] CustomTests, string OverrideVariable);
- 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, string[] CustomTests);
string FindResource(string File, string Subdirectories); - Overload helper for FindConfig
- void DummyEffectNotify(int Who, int Type, int Power);
- Dummy functions for initialising the frontend function struct.
- void InitArcomage();
- 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.
Authors:
GreatEmerald