33 lines
499 B
C++
33 lines
499 B
C++
#ifndef SERVER_HPP_
|
|
#define SERVER_HPP_
|
|
|
|
#include "delta.hpp"
|
|
#include "packet_list.hpp"
|
|
|
|
#include "config_utility.hpp"
|
|
#include "udp_network_utility.hpp"
|
|
#include "player_manager.hpp"
|
|
|
|
class Server {
|
|
public:
|
|
Server() = default;
|
|
~Server() = default;
|
|
|
|
void Init();
|
|
void Proc();
|
|
void Quit();
|
|
|
|
void HandleInput();
|
|
void UpdateWorld();
|
|
void HandleOutput();
|
|
private:
|
|
bool running = false;
|
|
Delta delta;
|
|
|
|
ConfigUtility configUtil;
|
|
UDPNetworkUtility netUtil;
|
|
PlayerManager playerMgr;
|
|
};
|
|
|
|
#endif
|