aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/System.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 15:27:21 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 15:27:21 +0100
commit97515abfb2859e289df9d65d7106f35159749131 (patch)
treea5755978b1e4c35d258f7b5c9c1bfec529f85ab3 /src/crepe/system/System.h
parentb4834c99c1afced63ee0c266b38925b95782bdf6 (diff)
no more singleton systems
Diffstat (limited to 'src/crepe/system/System.h')
-rw-r--r--src/crepe/system/System.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/crepe/system/System.h b/src/crepe/system/System.h
index ecbb7f5..3b81bef 100644
--- a/src/crepe/system/System.h
+++ b/src/crepe/system/System.h
@@ -4,19 +4,11 @@ namespace crepe {
class System {
public:
- static System & get_instance();
virtual void update() = 0;
-protected:
- System() {};
- virtual ~System() {};
-
-private:
- // singleton
- System(const System &) = delete;
- System(System &&) = delete;
- System & operator=(const System &) = delete;
- System & operator=(System &&) = delete;
+public:
+ System() = default;
+ virtual ~System() = default;
};
} // namespace crepe