mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 12:41:30 +00:00
* [Code] ZSList Global to Singleton Cleanup * Final * Post merge fixes --------- Co-authored-by: Chris Miles <akkadius1@gmail.com>
31 lines
687 B
C++
31 lines
687 B
C++
#ifndef ZONELIST_H_
|
|
#define ZONELIST_H_
|
|
|
|
#include "../common/types.h"
|
|
#include <string>
|
|
#include <vector>
|
|
#include <memory>
|
|
#include <list>
|
|
#include "zoneserver.h"
|
|
|
|
class WorldTCPConnection;
|
|
|
|
class ZSList {
|
|
public:
|
|
std::list<std::unique_ptr<ZoneServer>>& GetZsList() { return zone_server_list; }
|
|
void Add(ZoneServer* zoneserver);
|
|
void Remove(const std::string& uuid);
|
|
void SendPlayerEventLogSettings();
|
|
|
|
static ZSList* Instance()
|
|
{
|
|
static ZSList instance;
|
|
return &instance;
|
|
}
|
|
|
|
private:
|
|
std::list<std::unique_ptr<ZoneServer>> zone_server_list;
|
|
};
|
|
|
|
#endif /*ZONELIST_H_*/
|