2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2012-09-23 18:09:57 -04:00
|
|
|
#include "Plugin.h"
|
2012-12-21 06:04:08 -05:00
|
|
|
#include "Pawn.h"
|
2013-01-11 23:46:01 -05:00
|
|
|
#include "Player.h"
|
2013-02-13 14:22:08 -05:00
|
|
|
#include "World.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-13 19:34:47 -04:00
|
|
|
cPlugin::cPlugin( const AString & a_PluginDirectory )
|
2013-02-01 14:55:42 -05:00
|
|
|
: m_Version(0)
|
|
|
|
, m_Language(E_CPP)
|
|
|
|
, m_Directory(a_PluginDirectory)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-11 23:46:01 -05:00
|
|
|
cPlugin::~cPlugin()
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2013-02-05 14:57:22 -05:00
|
|
|
LOGD("Destroying plugin \"%s\".", m_Name.c_str());
|
2012-06-14 09:06:06 -04:00
|
|
|
}
|
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-11 23:46:01 -05:00
|
|
|
void cPlugin::Tick(float a_Dt)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2013-01-11 23:46:01 -05:00
|
|
|
UNUSED(a_Dt);
|
2012-06-14 09:06:06 -04:00
|
|
|
}
|
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-26 21:00:33 -05:00
|
|
|
bool cPlugin::OnBlockToPickups(cWorld * a_World, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2013-01-26 21:00:33 -05:00
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_Digger);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
UNUSED(a_Pickups);
|
2012-06-14 09:06:06 -04:00
|
|
|
return false;
|
|
|
|
}
|
2013-01-11 23:46:01 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-18 06:38:15 -04:00
|
|
|
bool cPlugin::OnChat(cPlayer * a_Player, const AString & a_Message)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2012-08-03 07:53:11 -04:00
|
|
|
UNUSED(a_Player);
|
2012-08-18 06:38:15 -04:00
|
|
|
UNUSED(a_Message);
|
2012-06-14 09:06:06 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-05 14:57:22 -05:00
|
|
|
bool cPlugin::OnChunkAvailable(cWorld * a_World, int a_ChunkX, int a_ChunkZ)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_ChunkX);
|
|
|
|
UNUSED(a_ChunkZ);
|
2013-01-11 23:46:01 -05:00
|
|
|
return false;
|
2012-06-14 09:06:06 -04:00
|
|
|
}
|
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-05 14:57:22 -05:00
|
|
|
bool cPlugin::OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cChunkDesc * a_ChunkDesc)
|
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_ChunkX);
|
|
|
|
UNUSED(a_ChunkZ);
|
|
|
|
UNUSED(a_ChunkDesc);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cChunkDesc * a_ChunkDesc)
|
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_ChunkX);
|
|
|
|
UNUSED(a_ChunkZ);
|
|
|
|
UNUSED(a_ChunkDesc);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnChunkUnloaded(cWorld * a_World, int a_ChunkX, int a_ChunkZ)
|
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_ChunkX);
|
|
|
|
UNUSED(a_ChunkZ);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnChunkUnloading(cWorld * a_World, int a_ChunkX, int a_ChunkZ)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_ChunkX);
|
|
|
|
UNUSED(a_ChunkZ);
|
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-28 11:17:26 -05:00
|
|
|
bool cPlugin::OnCollectingPickup(cPlayer * a_Player, cPickup * a_Pickup)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
2012-08-24 05:49:00 -04:00
|
|
|
UNUSED(a_Pickup);
|
2012-06-14 09:06:06 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-08-03 07:53:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
bool cPlugin::OnCraftingNoRecipe(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_Grid);
|
|
|
|
UNUSED(a_Recipe);
|
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-19 15:42:32 -04:00
|
|
|
bool cPlugin::OnDisconnect(cPlayer * a_Player, const AString & a_Reason)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_Reason);
|
|
|
|
UNUSED(a_Player);
|
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-21 08:47:01 -05:00
|
|
|
bool cPlugin::OnExecuteCommand(cPlayer * a_Player, const AStringVector & a_Split)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_Split);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-01 14:55:42 -05:00
|
|
|
bool cPlugin::OnHandshake(cClientHandle * a_Client, const AString & a_Username)
|
|
|
|
{
|
|
|
|
UNUSED(a_Client);
|
|
|
|
UNUSED(a_Username);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-28 11:54:11 -05:00
|
|
|
bool cPlugin::OnKilling(cPawn & a_Victim, cEntity * a_Killer)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
2013-01-28 11:54:11 -05:00
|
|
|
UNUSED(a_Victim);
|
2012-08-03 07:53:11 -04:00
|
|
|
UNUSED(a_Killer);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
bool cPlugin::OnLogin(cClientHandle * a_Client, int a_ProtocolVersion, const AString & a_Username)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_Client);
|
|
|
|
UNUSED(a_ProtocolVersion);
|
|
|
|
UNUSED(a_Username);
|
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-11 23:46:01 -05:00
|
|
|
bool cPlugin::OnPlayerBreakingBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerBrokenBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerEating(cPlayer & a_Player)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerJoined(cPlayer & a_Player)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerLeftClick(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_Status);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerMoved(cPlayer & a_Player)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerPlacedBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerPlacingBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerRightClick(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerShooting(cPlayer & a_Player)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerSpawned(cPlayer & a_Player)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_Player);
|
2012-08-03 07:53:11 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-11 23:46:01 -05:00
|
|
|
bool cPlugin::OnPlayerTossingItem(cPlayer & a_Player)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
2013-01-11 23:46:01 -05:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerUsedBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-11 23:46:01 -05:00
|
|
|
bool cPlugin::OnPlayerUsedItem(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
2013-01-11 23:46:01 -05:00
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerUsingBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_BlockMeta);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerUsingItem(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ)
|
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_BlockFace);
|
|
|
|
UNUSED(a_CursorX);
|
|
|
|
UNUSED(a_CursorY);
|
|
|
|
UNUSED(a_CursorZ);
|
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
bool cPlugin::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_Player);
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_Grid);
|
|
|
|
UNUSED(a_Recipe);
|
2012-08-03 07:53:11 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
bool cPlugin::OnTakeDamage(cPawn & a_Pawn, TakeDamageInfo & a_TakeDamageInfo)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
2012-08-18 05:56:28 -04:00
|
|
|
UNUSED(a_Pawn);
|
|
|
|
UNUSED(a_TakeDamageInfo);
|
2012-12-21 06:04:08 -05:00
|
|
|
return false;
|
2012-08-03 07:53:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-01 17:31:20 -04:00
|
|
|
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)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_Line1);
|
|
|
|
UNUSED(a_Line2);
|
|
|
|
UNUSED(a_Line3);
|
|
|
|
UNUSED(a_Line4);
|
2012-09-01 17:31:20 -04:00
|
|
|
UNUSED(a_Player);
|
2012-08-03 07:53:11 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-01 17:31:20 -04:00
|
|
|
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)
|
2012-08-03 07:53:11 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_BlockX);
|
|
|
|
UNUSED(a_BlockY);
|
|
|
|
UNUSED(a_BlockZ);
|
|
|
|
UNUSED(a_Line1);
|
|
|
|
UNUSED(a_Line2);
|
|
|
|
UNUSED(a_Line3);
|
|
|
|
UNUSED(a_Line4);
|
2012-09-01 17:31:20 -04:00
|
|
|
UNUSED(a_Player);
|
2012-08-03 07:53:11 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-13 14:22:08 -05:00
|
|
|
bool cPlugin::OnWeatherChanged(cWorld & a_World)
|
2012-08-18 05:56:28 -04:00
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-13 14:22:08 -05:00
|
|
|
bool cPlugin::OnWeatherChanging(cWorld & a_World, eWeather & a_Weather)
|
|
|
|
{
|
|
|
|
UNUSED(a_World);
|
|
|
|
UNUSED(a_Weather);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-01 14:55:42 -05:00
|
|
|
bool cPlugin::HandleCommand(const AStringVector & a_Split, cPlayer * a_Player)
|
2012-09-05 16:30:27 -04:00
|
|
|
{
|
2013-02-01 14:55:42 -05:00
|
|
|
UNUSED(a_Split);
|
|
|
|
UNUSED(a_Player);
|
2012-09-05 16:30:27 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-15 08:00:59 -05:00
|
|
|
bool cPlugin::HandleConsoleCommand(const AStringVector & a_Split)
|
|
|
|
{
|
|
|
|
UNUSED(a_Split);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-13 19:34:47 -04:00
|
|
|
AString cPlugin::GetLocalDirectory(void) const
|
|
|
|
{
|
|
|
|
return std::string("Plugins/") + m_Directory;
|
|
|
|
}
|