Initial commit.
This commit is contained in:
commit
74c23c0ad5
57 changed files with 3491 additions and 0 deletions
28
Server/Server.h
Normal file
28
Server/Server.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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() {}
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue