[Code] AdventureManager Global to Singleton Cleanup

This commit is contained in:
Kinglykrab
2025-06-20 21:54:53 -04:00
parent 1be7e56b86
commit 1ce32de25e
5 changed files with 25 additions and 23 deletions
+6
View File
@@ -40,6 +40,12 @@ public:
AdventureTemplate *GetAdventureTemplate(int theme, int id);
AdventureTemplate *GetAdventureTemplate(int id);
void GetZoneData(uint16 instance_id);
static AdventureManager* Instance()
{
static AdventureManager instance;
return &instance;
}
protected:
bool IsInExcludedZoneList(std::list<AdventureZones> excluded_zones, std::string zone_name, int version);
bool IsInExcludedZoneInList(std::list<AdventureZoneIn> excluded_zone_ins, int zone_id, int door_object);