summaryrefslogtreecommitdiffstats
path: root/source/cPlugin.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-24 00:09:57 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-24 00:09:57 +0200
commitecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26 (patch)
tree898e37fe747f0fdcefeb88f833557fd45db3347c /source/cPlugin.cpp
parentSource files cleanup: ChunkDataSerializer is Protocol-related (diff)
downloadcuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.tar
cuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.tar.gz
cuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.tar.bz2
cuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.tar.lz
cuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.tar.xz
cuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.tar.zst
cuberite-ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26.zip
Diffstat (limited to 'source/cPlugin.cpp')
-rw-r--r--source/cPlugin.cpp308
1 files changed, 0 insertions, 308 deletions
diff --git a/source/cPlugin.cpp b/source/cPlugin.cpp
deleted file mode 100644
index ce66a9655..000000000
--- a/source/cPlugin.cpp
+++ /dev/null
@@ -1,308 +0,0 @@
-
-#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
-
-#include "cPlugin.h"
-
-
-
-
-
-cPlugin::cPlugin()
- : m_Version( 0 )
- , m_Language( E_CPP )
- , m_bCanBindCommands( false )
-{
-}
-
-cPlugin::~cPlugin()
-{
-}
-
-// bool cPlugin::Initialize()
-// {
-// LOG("cPlugin::Initialize()");
-// return false;
-// }
-
-
-
-
-
-void cPlugin::Tick(float a_Dt)
-{
- UNUSED(a_Dt);
-}
-
-
-
-
-
-bool cPlugin::OnBlockDig(cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status, BLOCKTYPE a_OldBlock, NIBBLETYPE a_OldMeta)
-{
- UNUSED(a_Player);
- UNUSED(a_BlockX);
- UNUSED(a_BlockY);
- UNUSED(a_BlockZ);
- UNUSED(a_BlockFace);
- UNUSED(a_Status);
- UNUSED(a_OldBlock);
- UNUSED(a_OldMeta);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnBlockPlace(cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, const cItem & a_HeldItem)
-{
- UNUSED(a_Player);
- UNUSED(a_BlockX);
- UNUSED(a_BlockY);
- UNUSED(a_BlockZ);
- UNUSED(a_BlockFace);
- UNUSED(a_HeldItem);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnBlockToPickup(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, const cPlayer * a_Player, const cItem & a_EquippedItem, cItems & a_Pickups)
-{
- UNUSED(a_BlockType);
- UNUSED(a_BlockMeta);
- UNUSED(a_Player);
- UNUSED(a_EquippedItem);
- UNUSED(a_Pickups);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnChat(cPlayer * a_Player, const AString & a_Message)
-{
- UNUSED(a_Player);
- UNUSED(a_Message);
- return false;
-}
-
-
-
-
-
-void cPlugin::OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ)
-{
- UNUSED(a_World);
- UNUSED(a_ChunkX);
- UNUSED(a_ChunkZ);
-}
-
-
-
-
-
-bool cPlugin::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk)
-{
- UNUSED(a_World);
- UNUSED(a_ChunkX);
- UNUSED(a_ChunkZ);
- UNUSED(a_pLuaChunk);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnCollectPickup(cPlayer * a_Player, cPickup * a_Pickup)
-{
- UNUSED(a_Player);
- UNUSED(a_Pickup);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnCraftingNoRecipe(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe)
-{
- UNUSED(a_Player);
- UNUSED(a_Grid);
- UNUSED(a_Recipe);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnDisconnect(cPlayer * a_Player, const AString & a_Reason)
-{
- UNUSED(a_Reason);
- UNUSED(a_Player);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnKilled(cPawn * a_Killed, cEntity * a_Killer)
-{
- UNUSED(a_Killed);
- UNUSED(a_Killer);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnLogin(cClientHandle * a_Client, int a_ProtocolVersion, const AString & a_Username)
-{
- UNUSED(a_Client);
- UNUSED(a_ProtocolVersion);
- UNUSED(a_Username);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnPlayerJoin(cPlayer * a_Player)
-{
- UNUSED(a_Player);
- return false;
-}
-
-
-
-
-
-void cPlugin::OnPlayerMove(cPlayer * a_Player)
-{
- UNUSED(a_Player);
-}
-
-
-
-
-
-void cPlugin::OnPlayerSpawn(cPlayer * a_Player)
-{
- UNUSED(a_Player);
-}
-
-
-
-
-
-bool cPlugin::OnPostCrafting(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe)
-{
- UNUSED(a_Player);
- UNUSED(a_Grid);
- UNUSED(a_Recipe);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe)
-{
- UNUSED(a_Player);
- UNUSED(a_Grid);
- UNUSED(a_Recipe);
- return false;
-}
-
-
-
-
-
-void cPlugin::OnTakeDamage(cPawn * a_Pawn, TakeDamageInfo * a_TakeDamageInfo)
-{
- UNUSED(a_Pawn);
- UNUSED(a_TakeDamageInfo);
-}
-
-
-
-
-
-bool cPlugin::OnUpdatedSign(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4, cPlayer * a_Player)
-{
- UNUSED(a_World);
- UNUSED(a_BlockX);
- UNUSED(a_BlockY);
- UNUSED(a_BlockZ);
- UNUSED(a_Line1);
- UNUSED(a_Line2);
- UNUSED(a_Line3);
- UNUSED(a_Line4);
- UNUSED(a_Player);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnUpdatingSign(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4, cPlayer * a_Player)
-{
- UNUSED(a_World);
- UNUSED(a_BlockX);
- UNUSED(a_BlockY);
- UNUSED(a_BlockZ);
- UNUSED(a_Line1);
- UNUSED(a_Line2);
- UNUSED(a_Line3);
- UNUSED(a_Line4);
- UNUSED(a_Player);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnWeatherChanged(cWorld * a_World)
-{
- UNUSED(a_World);
- return false;
-}
-
-
-
-
-
-bool cPlugin::OnHandshake(cClientHandle * a_Client, const AString & a_Username)
-{
- UNUSED(a_Client);
- UNUSED(a_Username);
- return false;
-}
-
-
-
-
-
-void cPlugin::AddCommand(const AString & a_Command, const AString & a_Description, const AString & a_Permission)
-{
- CommandStruct Command;
- Command.Command = a_Command;
- Command.Description = a_Description;
- Command.Permission = a_Permission;
- m_Commands.push_back( Command );
-}
-
-
-
-