1
0

Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.

As requested in FS 418.
This commit is contained in:
madmaxoft
2013-08-08 09:13:13 +02:00
parent be7a6d7a66
commit 3f4abe8c95
25 changed files with 405 additions and 38 deletions

View File

@@ -5,6 +5,7 @@
#include "Player.h"
#include "World.h"
#include "CommandOutput.h"
#include "Mobs/Monster.h"
@@ -478,6 +479,50 @@ bool cPlugin::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid * a_Gr
bool cPlugin::OnSpawnedEntity(cWorld & a_World, cEntity & a_Entity)
{
UNUSED(a_World);
UNUSED(a_Entity);
return false;
}
bool cPlugin::OnSpawnedMonster(cWorld & a_World, cMonster & a_Monster)
{
UNUSED(a_World);
UNUSED(a_Monster);
return false;
}
bool cPlugin::OnSpawningEntity(cWorld & a_World, cEntity & a_Entity)
{
UNUSED(a_World);
UNUSED(a_Entity);
return false;
}
bool cPlugin::OnSpawningMonster(cWorld & a_World, cMonster & a_Monster)
{
UNUSED(a_World);
UNUSED(a_Monster);
return false;
}
bool cPlugin::OnTakeDamage(cEntity & a_Receiver, TakeDamageInfo & a_TakeDamageInfo)
{
UNUSED(a_Receiver);