diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-10-03 20:41:19 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-10-03 20:41:19 +0200 |
commit | 386d58b5862d8b76925c6523721594887606e82a (patch) | |
tree | ef073e7a843f4b75a4008d4b7383f7cdf08ceee5 /source/cPlugin.cpp | |
parent | Visual Studio 2010 solution and project files (diff) | |
download | cuberite-386d58b5862d8b76925c6523721594887606e82a.tar cuberite-386d58b5862d8b76925c6523721594887606e82a.tar.gz cuberite-386d58b5862d8b76925c6523721594887606e82a.tar.bz2 cuberite-386d58b5862d8b76925c6523721594887606e82a.tar.lz cuberite-386d58b5862d8b76925c6523721594887606e82a.tar.xz cuberite-386d58b5862d8b76925c6523721594887606e82a.tar.zst cuberite-386d58b5862d8b76925c6523721594887606e82a.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cPlugin.cpp | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/source/cPlugin.cpp b/source/cPlugin.cpp new file mode 100644 index 000000000..10f5d74d3 --- /dev/null +++ b/source/cPlugin.cpp @@ -0,0 +1,78 @@ +#include "cPlugin.h"
+#include <stdio.h>
+
+#include "cMCLogger.h"
+
+cPlugin::cPlugin()
+ : m_Version( 0 )
+{
+}
+
+cPlugin::~cPlugin()
+{
+}
+
+// bool cPlugin::Initialize()
+// {
+// LOG("cPlugin::Initialize()");
+// return false;
+// }
+
+void cPlugin::Tick(float a_Dt)
+{
+ (void)a_Dt;
+}
+
+bool cPlugin::OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player )
+{
+ (void)a_PacketData;
+ (void)a_Player;
+ return false;
+}
+
+bool cPlugin::OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player )
+{
+ (void)a_Pickup;
+ (void)a_Player;
+ return false;
+}
+
+bool cPlugin::OnDisconnect( std::string a_Reason, cPlayer* a_Player )
+{
+ (void)a_Reason;
+ (void)a_Player;
+ return false;
+}
+
+bool cPlugin::OnChat( std::string a_Chat, cPlayer* a_Player )
+{
+ (void)a_Chat;
+ (void)a_Player;
+ return false;
+}
+
+bool cPlugin::OnLogin( cPacket_Login* a_PacketData )
+{
+ (void)a_PacketData;
+ return false;
+}
+
+void cPlugin::OnPlayerSpawn( cPlayer* a_Player )
+{
+ (void)a_Player;
+}
+
+bool cPlugin::OnPlayerJoin( cPlayer* a_Player )
+{
+ (void)a_Player;
+ return false;
+}
+
+void cPlugin::AddCommand( std::string & a_Command, std::string & a_Description, std::string & a_Permission )
+{
+ CommandStruct Command;
+ Command.Command = a_Command;
+ Command.Description = a_Description;
+ Command.Permission = a_Permission;
+ m_Commands.push_back( Command );
+}
|