Added HOOK_WEATHER_CHANGING.
http://www.mc-server.org/support/index.php?do=details&task_id=299 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1210 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "Plugin.h"
|
||||
#include "Pawn.h"
|
||||
#include "Player.h"
|
||||
#include "World.h"
|
||||
|
||||
|
||||
|
||||
@@ -502,7 +503,7 @@ bool cPlugin::OnUpdatingSign(cWorld * a_World, int a_BlockX, int a_BlockY, int a
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnWeatherChanged(cWorld * a_World)
|
||||
bool cPlugin::OnWeatherChanged(cWorld & a_World)
|
||||
{
|
||||
UNUSED(a_World);
|
||||
return false;
|
||||
@@ -512,6 +513,17 @@ bool cPlugin::OnWeatherChanged(cWorld * a_World)
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnWeatherChanging(cWorld & a_World, eWeather & a_Weather)
|
||||
{
|
||||
UNUSED(a_World);
|
||||
UNUSED(a_Weather);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool cPlugin::HandleCommand(const AStringVector & a_Split, cPlayer * a_Player)
|
||||
{
|
||||
UNUSED(a_Split);
|
||||
|
||||
Reference in New Issue
Block a user