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/Entity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/Entity.h') diff --git a/source/Entity.h b/source/Entity.h index bd66df5f5..c9d26e1a1 100644 --- a/source/Entity.h +++ b/source/Entity.h @@ -107,7 +107,8 @@ public: cEntity(eEntityType a_EntityType, double a_X, double a_Y, double a_Z, double a_Width, double a_Height); virtual ~cEntity(); - virtual void Initialize(cWorld * a_World); + /// Spawns the entity in the world; returns true if spawned, false if not (plugin disallowed) + virtual bool Initialize(cWorld * a_World); // tolua_begin -- cgit v1.2.3