Zigonnage dans le srv.
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#ifndef _SERVER_H__
|
||||
#define _SERVER_H__
|
||||
#ifndef SERVER_H__
|
||||
#define SERVER_H__
|
||||
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "../SQCSim-common/world.h"
|
||||
#include "define.h"
|
||||
#include "connection.h"
|
||||
|
||||
class Server {
|
||||
public:
|
||||
Server(LogDest log = LogDest::CONSOLE);
|
||||
Server(LogDest log = LOG_DEST::CONSOLE);
|
||||
~Server();
|
||||
|
||||
int Init();
|
||||
@@ -23,10 +24,10 @@ private:
|
||||
SOCKET m_sock_udp = 0,
|
||||
m_sock_tcp = 0;
|
||||
LogDest m_log;
|
||||
|
||||
std::ofstream m_logfile;
|
||||
|
||||
Connection* m_conn[MAX_CONNECTIONS];
|
||||
World* m_world = nullptr;
|
||||
std::vector<Player> m_players;
|
||||
|
||||
std::string Timestamp();
|
||||
void Log(std::string str, bool is_error, bool is_fatal);
|
||||
|
Reference in New Issue
Block a user