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