From eee8b0bf23bdc1d128cf29370ae64d30335dab67 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 28 Mar 2017 13:45:20 -0400 Subject: [PATCH] Add some const & GetList entity functions --- zone/entity.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zone/entity.h b/zone/entity.h index b9b85a133..0b4792bf4 100644 --- a/zone/entity.h +++ b/zone/entity.h @@ -455,6 +455,14 @@ public: void GetSpawnList(std::list &d_list); void GetTargetsForConeArea(Mob *start, float min_radius, float radius, float height, int pcnpc, std::list &m_list); + inline const std::unordered_map &GetMobList() { return mob_list; } + inline const std::unordered_map &GetNPCList() { return npc_list; } + inline const std::unordered_map &GetMercList() { return merc_list; } + inline const std::unordered_map &GetClientList() { return client_list; } + inline const std::unordered_map &GetCorpseList() { return corpse_list; } + inline const std::unordered_map &GetObjectList() { return object_list; } + inline const std::unordered_map &GetDoorList() { return door_list; } + void DepopAll(int NPCTypeID, bool StartSpawnTimer = true); uint16 GetFreeID();