Update some things.
This commit is contained in:
parent
f215bc3742
commit
f9d6e7a70a
35 changed files with 575 additions and 905 deletions
|
|
@ -3,14 +3,20 @@
|
|||
#include <memory>
|
||||
|
||||
#include "Shared.h"
|
||||
#include "Platform/Window.h"
|
||||
#include <Settings.h>
|
||||
|
||||
namespace Artifact {
|
||||
|
||||
class ClientSubsystem;
|
||||
class WindowImpl;
|
||||
|
||||
/// The client class.
|
||||
class Client: public Engine<BaseSubsystem> {
|
||||
class Client: public Engine<ClientSubsystem> {
|
||||
public:
|
||||
Window * window = nullptr;
|
||||
WindowImpl * window = nullptr;
|
||||
Settings settings;
|
||||
|
||||
Client() : settings(getClientConfigPath()) {}
|
||||
|
||||
void addDefaultSubsystems();
|
||||
void initDefault();
|
||||
|
|
@ -24,4 +30,11 @@ public:
|
|||
void run();
|
||||
};
|
||||
|
||||
class ClientSubsystem: public BaseSubsystem {
|
||||
public:
|
||||
Client * client = nullptr;
|
||||
virtual void render() {}
|
||||
virtual void tick() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue