diff options
author | Mattes D <github@xoft.cz> | 2016-06-12 16:53:24 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-27 20:51:51 +0200 |
commit | 24853397ef4648155d886b112e00c3e2c3d1e900 (patch) | |
tree | 8fb7a0da6418b00e9d9a29dd3fca008df12aae78 /src/Bindings/LuaChunkStay.h | |
parent | Changed cLuaWindow callbacks to use cLuaState::cCallback. (diff) | |
download | cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.gz cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.bz2 cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.lz cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.xz cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.zst cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaChunkStay.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Bindings/LuaChunkStay.h b/src/Bindings/LuaChunkStay.h index a455d2502..51356d5b7 100644 --- a/src/Bindings/LuaChunkStay.h +++ b/src/Bindings/LuaChunkStay.h @@ -39,7 +39,7 @@ public: bool AddChunks(int a_ChunkCoordTableStackPos); /** Enables the ChunkStay for the specified chunkmap, with the specified Lua callbacks. */ - void Enable(cChunkMap & a_ChunkMap, int a_OnChunkAvailableStackPos, int a_OnAllChunksAvailableStackPos); + void Enable(cChunkMap & a_ChunkMap, cLuaState::cCallbackPtr a_OnChunkAvailable, cLuaState::cCallbackPtr a_OnAllChunksAvailable); protected: /** The plugin which has created the ChunkStay, via cWorld:ChunkStay() binding method. */ @@ -49,10 +49,10 @@ protected: cLuaState * m_LuaState; /** The Lua function to call in OnChunkAvailable. Only valid when enabled. */ - cLuaState::cRef m_OnChunkAvailable; + cLuaState::cCallbackPtr m_OnChunkAvailable; /** The Lua function to call in OnAllChunksAvailable. Only valid when enabled. */ - cLuaState::cRef m_OnAllChunksAvailable; + cLuaState::cCallbackPtr m_OnAllChunksAvailable; // cChunkStay overrides: |