diff options
author | Niels Breuker <niels.breuker@hotmail.nl> | 2022-10-02 12:54:47 +0200 |
---|---|---|
committer | Niels Breuker <niels.breuker@hotmail.nl> | 2022-10-02 12:54:47 +0200 |
commit | 64ff027e645208c1a64a6dbeb2d1540da9e718f8 (patch) | |
tree | e050669d8b1967cd1c82cac394cbbd44060b4036 /src/Bindings/LuaState.cpp | |
parent | Update Core (diff) | |
download | cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.tar cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.tar.gz cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.tar.bz2 cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.tar.lz cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.tar.xz cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.tar.zst cuberite-64ff027e645208c1a64a6dbeb2d1540da9e718f8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaState.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index e4c537967..a6ba3397c 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -1033,6 +1033,16 @@ void cLuaState::Push(cLuaTCPLink * a_TCPLink) +void cLuaState::Push(std::thread* a_Thread) { + ASSERT(IsValid()); + + tolua_pushusertype(m_LuaState, a_Thread, "std::thread *"); +} + + + + + void cLuaState::Push(cLuaUDPEndpoint * a_UDPEndpoint) { ASSERT(IsValid()); @@ -1099,6 +1109,17 @@ void cLuaState::Push(std::chrono::milliseconds a_Value) + +void cLuaState::Push(std::mutex * a_Mutex) { + ASSERT(IsValid()); + + tolua_pushusertype(m_LuaState, a_Mutex, "std::mutex *"); +} + + + + + void cLuaState::Pop(int a_NumValuesToPop) { ASSERT(IsValid()); |