diff options
author | madmaxoft <github@xoft.cz> | 2014-03-12 13:05:28 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-12 13:05:28 +0100 |
commit | 0c15fdf7b05ee6ad0705b2a789f6b709bbde2733 (patch) | |
tree | 69db118c8a6f19f443400fe8cf4e98d1f95428f7 /src/Bindings/LuaState.h | |
parent | Merge remote-tracking branch 'origin/SnowBall' (diff) | |
download | cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.gz cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.bz2 cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.lz cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.xz cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.zst cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaState.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index 4a7a6fadb..1495c72f0 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -139,9 +139,14 @@ public: /** Allows this object to be used in the same way as a lua_State *, for example in the LuaLib functions */ operator lua_State * (void) { return m_LuaState; } - /** Creates the m_LuaState, if not closed already. This state will be automatically closed in the destructor */ + /** Creates the m_LuaState, if not closed already. This state will be automatically closed in the destructor. + The regular Lua libs are registered, but the MCS API is not registered (so that Lua can be used as + lite-config as well), use RegisterAPILibs() to do that. */ void Create(void); + /** Registers all the API libraries that MCS provides into m_LuaState. */ + void RegisterAPILibs(void); + /** Closes the m_LuaState, if not closed already */ void Close(void); |