forked from nomelx/GW2SEX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathframework.h
More file actions
54 lines (46 loc) · 1.1 KB
/
framework.h
File metadata and controls
54 lines (46 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef FRAMEWORK_H
#define FRAMEWORK_H
/*
* GW2SEX - Guild Wars 2 Server Emulator For xnix
*
* Developed by Nomelx
* */
#include <stdio.h>
#include <stdint.h>
#include <string>
//#include "mongo/client/dbclient.h"
#include "Util/serverconfig.h"
#include "Util/serverclock.h"
#include "Util/system.h"
#include "Login/loginserver.h"
#define REQ_ARGUMENTS_C 1 // Require just the filename to the config file
/*
* Store any options that are frequently accessed
* */
struct FrameworkOptions {
char m_ServerName[512];
char m_ServerMode[512];
bool m_MITMMode;
};
/*
* Holds startup logic and the main application loop
* */
class Framework : public ServerConfig
{
public:
Framework();
public:
int Run(int argc, char** argv);
int RunGateway();
public:
bool Configure(int argc, char** argv);
public:
void ShowUsage();
private:
bool m_Running;
FrameworkOptions m_Options;
LoginServer m_LoginServer;
private:
ServerClock m_Clock;
};
#endif // FRAMEWORK_H