[Fix] Zone State Entity Variable Load Pre-Spawn (#4785)

* [Fix] Zone state ent variable pre-spawn

* Update zone_save_state.cpp

* Update zone_save_state.cpp

* Update spawn2.cpp

* Update zone_save_state.cpp

* Update zone_save_state.cpp
This commit is contained in:
Chris Miles
2025-03-19 16:21:36 -05:00
committed by GitHub
parent fd6e5f465d
commit 9528c1e7fc
3 changed files with 46 additions and 21 deletions
+2
View File
@@ -77,6 +77,7 @@ public:
inline NPC *GetNPC() const { return npcthis; }
inline bool IsResumedFromZoneSuspend() const { return m_resumed_from_zone_suspend; }
inline void SetResumedFromZoneSuspend(bool resumed) { m_resumed_from_zone_suspend = resumed; }
inline void SetEntityVariables(std::map<std::string, std::string> vars) { m_entity_variables = vars; }
protected:
friend class Zone;
@@ -104,6 +105,7 @@ private:
bool IsDespawned;
uint32 killcount;
bool m_resumed_from_zone_suspend = false;
std::map<std::string, std::string> m_entity_variables = {};
};
class SpawnCondition {