eqemu-server/loginserver/world_server_manager.h
Mitch Freeman cf3b9638c9 Phase 1 Offline Trading
Cleanup and testing
Zone updated builds ok
World updated builds ok

Update guild_base.h
2025-09-21 19:14:12 -03:00

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