aboutsummaryrefslogtreecommitdiffstats
path: root/yage/entity/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'yage/entity/system.h')
-rw-r--r--yage/entity/system.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/yage/entity/system.h b/yage/entity/system.h
index 84536cc9..4f8306a8 100644
--- a/yage/entity/system.h
+++ b/yage/entity/system.h
@@ -1,26 +1,21 @@
-/** ---------------------------------------------------------------------------
- * -*- c++ -*-
- * @file: system.h
- *
- * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
- * MIT License, see LICENSE file for more details.
- * ----------------------------------------------------------------------------
- */
-
#pragma once
-#include <cstddef>
-
-#include "../util/noncopyable.h"
+#include "entity.h"
namespace yage
{
-class System : public NonCopyable
+class BaseSystem
{
public:
- virtual void init() = 0;
- virtual void update() = 0;
+ virtual void update(double dt, EntityManager &em) = 0;
+};
+
+template <typename T>
+class System : public BaseSystem
+{
+protected:
+ ComponentMask active_mask_;
};
} // namespace yage