28 lines
446 B
C++
28 lines
446 B
C++
#pragma once
|
|
|
|
#include "Shared.h"
|
|
#include <Settings.h>
|
|
|
|
namespace Artifact {
|
|
|
|
class ServerSubsystem;
|
|
|
|
class Server: public Engine<ServerSubsystem> {
|
|
public:
|
|
Settings settings;
|
|
|
|
Server() : settings(getServerConfigPath()) {}
|
|
|
|
void init();
|
|
void tick();
|
|
void run();
|
|
void addDefaultSubsystems();
|
|
};
|
|
|
|
class ServerSubsystem: public BaseSubsystem {
|
|
public:
|
|
Server * server = nullptr;
|
|
virtual void tick() {}
|
|
};
|
|
|
|
}
|