Skip to content
Snippets Groups Projects
Commit 9ee7ca56 authored by demiralp's avatar demiralp
Browse files

Simplified and improved the convenience and encapsulation of the system.

parent 2d99fa59
No related branches found
No related tags found
1 merge request!121WIP: Feature/#388 reworked framegraph
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#ifndef LIBRARY_PHX_SYSTEM_HPP_ #ifndef LIBRARY_PHX_SYSTEM_HPP_
#define LIBRARY_PHX_SYSTEM_HPP_ #define LIBRARY_PHX_SYSTEM_HPP_
#include <string>
#include "phx/export.hpp" #include "phx/export.hpp"
#include "phx/frame_timer.hpp" #include "phx/frame_timer.hpp"
#include "phx/loggable.hpp" #include "phx/loggable.hpp"
...@@ -34,21 +32,13 @@ class Engine; ...@@ -34,21 +32,13 @@ class Engine;
class PHOENIX_EXPORT System : public Loggable { class PHOENIX_EXPORT System : public Loggable {
public: public:
System() = delete;
virtual ~System() = default; virtual ~System() = default;
virtual void Prepare() {} virtual void Prepare() {}
virtual void Update(const FrameTimer::TimeInfo&) {} virtual void Update(const FrameTimer::TimeInfo&) {}
Engine* GetEngine() const;
protected: protected:
explicit System(Engine* engine); friend Engine;
System(const System&) = delete;
System(System&&) = default;
System& operator=(const System&) = delete;
System& operator=(System&&) = default;
Engine* engine_ = nullptr; Engine* engine_ = nullptr;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment