Update some things.
This commit is contained in:
parent
f215bc3742
commit
f9d6e7a70a
35 changed files with 575 additions and 905 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <chrono>
|
||||
|
||||
#include "Client.h"
|
||||
#include "Network.h"
|
||||
#include "Graphics/UIRenderer.h"
|
||||
#include "Graphics/Graphics.h"
|
||||
#include <Network/Network.h>
|
||||
|
|
@ -8,10 +9,10 @@
|
|||
namespace Artifact {
|
||||
|
||||
void Client::init() {
|
||||
window = subsystem<Window>();
|
||||
window = subsystem<WindowImpl>();
|
||||
|
||||
for (auto & system : subsystems) {
|
||||
system->engine = this;
|
||||
system->client = this;
|
||||
system->init();
|
||||
system->reload();
|
||||
}
|
||||
|
|
@ -45,7 +46,7 @@ void Client::tick() {
|
|||
|
||||
void Client::addDefaultSubsystems() {
|
||||
addSubsystem<Window>(1080, 640, "Artifact Engine");
|
||||
addSubsystem<NetworkClient>();
|
||||
addSubsystem<ClientNetwork>();
|
||||
auto graphics = addSubsystem<Graphics>();
|
||||
{
|
||||
graphics->addSubsystem<UIRenderer>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue