summaryrefslogtreecommitdiffstats
path: root/source/cPlugin_NewLua.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-05 17:20:48 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-05 17:20:48 +0200
commitd832996e198605c20760c72433e35beca3192a5a (patch)
treeaedaefb6b7753a14eb27c7c6fd3e8e3a3b7c3df3 /source/cPlugin_NewLua.h
parentFixed previous commit's recipes and items. (diff)
downloadcuberite-d832996e198605c20760c72433e35beca3192a5a.tar
cuberite-d832996e198605c20760c72433e35beca3192a5a.tar.gz
cuberite-d832996e198605c20760c72433e35beca3192a5a.tar.bz2
cuberite-d832996e198605c20760c72433e35beca3192a5a.tar.lz
cuberite-d832996e198605c20760c72433e35beca3192a5a.tar.xz
cuberite-d832996e198605c20760c72433e35beca3192a5a.tar.zst
cuberite-d832996e198605c20760c72433e35beca3192a5a.zip
Diffstat (limited to 'source/cPlugin_NewLua.h')
-rw-r--r--source/cPlugin_NewLua.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h
index 971f79b80..8fb2e9dc0 100644
--- a/source/cPlugin_NewLua.h
+++ b/source/cPlugin_NewLua.h
@@ -25,19 +25,19 @@ public: //tolua_export
virtual void Tick(float a_Dt); //tolua_export
- //tolua_begin
- virtual bool OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player );
- virtual bool OnDisconnect( std::string a_Reason, cPlayer* a_Player );
- virtual bool OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player );
- virtual bool OnBlockDig( cPacket_BlockDig* a_PacketData, cPlayer* a_Player, cItem* a_PickupItem );
- virtual bool OnChat( const char* a_Chat, cPlayer* a_Player );
- virtual bool OnLogin( cPacket_Login* a_PacketData );
- virtual void OnPlayerSpawn( cPlayer* a_Player );
- virtual bool OnPlayerJoin( cPlayer* a_Player );
- virtual void OnPlayerMove( cPlayer* a_Player );
- virtual void OnTakeDamage( cPawn* a_Pawn, TakeDamageInfo* a_TakeDamageInfo );
- virtual bool OnKilled( cPawn* a_Killed, cEntity* a_Killer );
- //tolua_end
+ virtual bool OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player ) override;
+ virtual bool OnDisconnect( std::string a_Reason, cPlayer* a_Player ) override;
+ virtual bool OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player ) override;
+ virtual bool OnBlockDig( cPacket_BlockDig* a_PacketData, cPlayer* a_Player, cItem* a_PickupItem ) override;
+ virtual bool OnChat( const char* a_Chat, cPlayer* a_Player ) override;
+ virtual bool OnLogin( cPacket_Login* a_PacketData ) override;
+ virtual void OnPlayerSpawn( cPlayer* a_Player ) override;
+ virtual bool OnPlayerJoin( cPlayer* a_Player ) override;
+ virtual void OnPlayerMove( cPlayer* a_Player ) override;
+ virtual void OnTakeDamage( cPawn* a_Pawn, TakeDamageInfo* a_TakeDamageInfo ) override;
+ virtual bool OnKilled( cPawn* a_Killed, cEntity* a_Killer ) override;
+
+ virtual void OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ) override;
lua_State* GetLuaState() { return m_LuaState; }