From 3f4abe8c95e4d37a84018ca4d478a908fca423ac Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 8 Aug 2013 09:13:13 +0200 Subject: Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks. As requested in FS 418. --- source/Plugin.cpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'source/Plugin.cpp') diff --git a/source/Plugin.cpp b/source/Plugin.cpp index 20943b916..76110321a 100644 --- a/source/Plugin.cpp +++ b/source/Plugin.cpp @@ -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); -- cgit v1.2.3