mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-10 13:23:52 +00:00
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
#ifndef EQEMU_SERVERMANAGER_H
|
|
#define EQEMU_SERVERMANAGER_H
|
|
|
|
#include "../common/global_define.h"
|
|
#include "../common/servertalk.h"
|
|
#include "../common/packet_dump.h"
|
|
#include "../common/net/servertalk_server.h"
|
|
#include "world_server.h"
|
|
#include "client.h"
|
|
#include <list>
|
|
|
|
class WorldServerManager {
|
|
public:
|
|
WorldServerManager();
|
|
~WorldServerManager();
|
|
void SendUserLoginToWorldRequest(
|
|
unsigned int server_id,
|
|
unsigned int client_account_id,
|
|
const std::string &client_loginserver
|
|
);
|
|
void SendUserToWorldCancelOfflineRequest(
|
|
unsigned int server_id,
|
|
unsigned int client_account_id,
|
|
const std::string &client_loginserver
|
|
);
|
|
std::unique_ptr<EQApplicationPacket> CreateServerListPacket(Client *client, uint32 sequence);
|
|
bool DoesServerExist(const std::string &s, const std::string &server_short_name, WorldServer *ignore = nullptr);
|
|
void DestroyServerByName(std::string s, std::string server_short_name, WorldServer *ignore = nullptr);
|
|
const std::list<std::unique_ptr<WorldServer>> &GetWorldServers() const;
|
|
|
|
private:
|
|
std::unique_ptr<EQ::Net::ServertalkServer> m_server_connection;
|
|
std::list<std::unique_ptr<WorldServer>> m_world_servers;
|
|
|
|
};
|
|
|
|
#endif
|
|
|