mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LCEMP-Server.git
synced 2026-05-22 05:26:00 +00:00
30 lines
595 B
C++
30 lines
595 B
C++
#pragma once
|
|
|
|
#include "../../Minecraft.Client/ConsoleInputSource.h"
|
|
#include "../../Minecraft.Client/MinecraftServer.h"
|
|
#include "ServerProperties.h"
|
|
|
|
class DedicatedServer : public ConsoleInputSource
|
|
{
|
|
public:
|
|
DedicatedServer();
|
|
~DedicatedServer();
|
|
|
|
bool init();
|
|
|
|
int run();
|
|
|
|
void shutdown();
|
|
|
|
virtual void info(const wstring& string);
|
|
virtual void warn(const wstring& string);
|
|
virtual wstring getConsoleName();
|
|
|
|
static int consoleInputThread(void *param);
|
|
|
|
private:
|
|
void processConsoleInput();
|
|
|
|
bool m_running;
|
|
ServerProperties m_properties;
|
|
}; |