Added Spawn object to lua and functions to manipulate them

This commit is contained in:
KimLS
2013-06-23 14:48:36 -07:00
parent 0dc66b3dd7
commit b904689a98
11 changed files with 518 additions and 11 deletions
+2 -2
View File
@@ -64,8 +64,6 @@ public:
uint32 CurrentNPCID() { return currentnpcid; }
void SetCurrentNPCID(uint32 nid) { currentnpcid = nid; }
uint32 GetSpawnCondition() { return condition_id; }
uint32 spawn2_id;
uint32 respawn_;
bool NPCPointerValid() { return (npcthis!=nullptr); }
void SetNPCPointer(NPC* n) { npcthis = n; }
@@ -75,6 +73,8 @@ protected:
friend class Zone;
Timer timer;
private:
uint32 spawn2_id;
uint32 respawn_;
uint32 resetTimer();
uint32 despawnTimer(uint32 despawn_timer);