summaryrefslogtreecommitdiffstats
path: root/source/cPlugin_NewLua.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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; }