summaryrefslogtreecommitdiffstats
path: root/source/cPlugin.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cPlugin.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/cPlugin.h b/source/cPlugin.h
index 5e9ee1601..3b29b604f 100644
--- a/source/cPlugin.h
+++ b/source/cPlugin.h
@@ -13,8 +13,13 @@ class cPickup;
class cItem;
class cEntity;
class cPawn;
+class cWorld;
struct TakeDamageInfo;
+
+
+
+
// tolua_begin
class cPlugin
{
@@ -43,6 +48,7 @@ public:
virtual void OnPlayerMove( cPlayer* a_Player ) { (void)a_Player; }
virtual void OnTakeDamage( cPawn* a_Pawn, TakeDamageInfo* a_TakeDamageInfo ) { (void)a_Pawn; (void)a_TakeDamageInfo; }
virtual bool OnKilled( cPawn* a_Killed, cEntity* a_Killer ) { (void)a_Killed; (void)a_Killer; return false; }
+ virtual void OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ) {}
// Accessors
const char* GetName() const { return m_Name.c_str(); }
@@ -85,3 +91,7 @@ private:
std::string m_Name;
int m_Version;
}; //tolua_export
+
+
+
+