Launcher support added. Still missing UCS but thinking about maybe rewriting it completely

This commit is contained in:
KimLS
2017-01-05 22:25:01 -08:00
parent f6ca59fbc6
commit b7c5de144a
9 changed files with 209 additions and 298 deletions
+4 -3
View File
@@ -19,12 +19,13 @@
#define LAUNCHERLIST_H_
#include "../common/types.h"
#include "../net/servertalk_server_connection.h"
#include <map>
#include <vector>
#include <string>
#include <memory>
class LauncherLink;
class EmuTCPConnection;
class EQLConfig;
class LauncherList {
@@ -39,7 +40,8 @@ public:
void CreateLauncher(const char *name, uint8 dynamic_count);
void Remove(const char *name);
void Add(EmuTCPConnection *conn);
void Add(std::shared_ptr<EQ::Net::ServertalkServerConnection> conn);
void Remove(std::shared_ptr<EQ::Net::ServertalkServerConnection> conn);
LauncherLink *Get(const char *name);
LauncherLink *FindByZone(const char *short_name);
@@ -49,7 +51,6 @@ public:
protected:
std::map<std::string, EQLConfig *> m_configs; //we own these objects
std::map<std::string, LauncherLink *> m_launchers; //we own these objects
// std::map<std::string, EQLConfig *> m_configs; //we own these objects
std::vector<LauncherLink *> m_pendingLaunchers; //we own these objects, have not yet identified themself
int nextID;
};