|
CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
|
Go to the source code of this file.
Classes | |
| struct | lua_register_state |
| class | lua_class_binding< T > |
Enumerations | |
| enum class | lua_metatable { map , palette , sheet , font , bitmap_font , freetype_font , layers , anims , anim , pathfinder , surface , bitmap , cursor , lfs_ext , sound_archive , sound_fx , movie , string , window_base , sprite_list , string_proxy , line , iso_fs , midi_player , count } |
Functions | |
| void | luaT_setclosure (const lua_register_state *pState, lua_CFunction fn, int iUps) |
| template<typename... Args> | |
| void | luaT_setclosure (const lua_register_state *pState, lua_CFunction fn, int iUps, lua_metatable eMetatable1, Args... args) |
| template<typename... Args> | |
| void | luaT_setclosure (const lua_register_state *pState, lua_CFunction fn, int iUps, const char *str, Args... args) |
| template<typename... Args> | |
| void | add_lua_function (const lua_register_state *pState, lua_CFunction fn, const char *name, Args... args) |
|
strong |
| void add_lua_function | ( | const lua_register_state * | pState, |
| lua_CFunction | fn, | ||
| const char * | name, | ||
| Args... | args | ||
| ) |
Add a c++ function to the lua state.
| pState | Lua state for the game |
| fn | The C/C++ function to register |
| name | The name to use for the function in lua |
| args | The upvalues to associate with the function in lua |
| void luaT_setclosure | ( | const lua_register_state * | pState, |
| lua_CFunction | fn, | ||
| int | iUps | ||
| ) |
| void luaT_setclosure | ( | const lua_register_state * | pState, |
| lua_CFunction | fn, | ||
| int | iUps, | ||
| const char * | str, | ||
| Args... | args | ||
| ) |
| void luaT_setclosure | ( | const lua_register_state * | pState, |
| lua_CFunction | fn, | ||
| int | iUps, | ||
| lua_metatable | eMetatable1, | ||
| Args... | args | ||
| ) |