diff options
Diffstat (limited to 'source/cPlugin_Squirrel.h')
-rw-r--r-- | source/cPlugin_Squirrel.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/source/cPlugin_Squirrel.h b/source/cPlugin_Squirrel.h index 631304a32..802faa76f 100644 --- a/source/cPlugin_Squirrel.h +++ b/source/cPlugin_Squirrel.h @@ -1,9 +1,16 @@ +
#pragma once
+
#include "cPlugin.h"
#include <sqrat.h>
#include "squirrelbindings/SquirrelObject.h"
-class cPlugin_Squirrel : public cPlugin
+
+
+
+
+class cPlugin_Squirrel :
+ public cPlugin
{
public:
cPlugin_Squirrel(const char* a_PluginName);
@@ -20,7 +27,7 @@ public: virtual bool OnChat (cPlayer * a_Player, const AString & a_Message) override;
virtual void OnChunkGenerated (cWorld * a_World, int a_ChunkX, int a_ChunkZ) override;
virtual bool OnChunkGenerating (cWorld * a_World, int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk ) override;
- virtual bool OnCollectItem (cPickup* a_Pickup, cPlayer* a_Player ) override;
+ virtual bool OnCollectPickup (cPlayer * a_Player, cPickup * a_Pickup) override;
virtual bool OnCraftingNoRecipe(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) override;
virtual bool OnDisconnect (cPlayer * a_Player, const AString & a_Reason) override;
virtual bool OnKilled (cPawn* a_Killed, cEntity* a_Killer ) override;
@@ -39,4 +46,8 @@ protected: const char * m_PluginName;
cCriticalSection m_CriticalSection;
SquirrelObject *m_Plugin;
-};
\ No newline at end of file +};
+
+
+
+
|