aboutsummaryrefslogtreecommitdiffstats
path: root/yage/entity/system.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-06-22 00:14:10 +0100
committerGitHub <noreply@github.com>2018-06-22 00:14:10 +0100
commitb1673de1b46bd2e566b7c66197ad989d0323f061 (patch)
tree2cbfdab552025af7a8772069b9f9935f9c9f387f /yage/entity/system.h
parent39ef9c1cbe660a8369a33eb0ba13cc15be4cfa15 (diff)
parent3702e753a5f7b31c31261c968757e19e808a84ec (diff)
downloadYAGE-b1673de1b46bd2e566b7c66197ad989d0323f061.tar.gz
YAGE-b1673de1b46bd2e566b7c66197ad989d0323f061.zip
Merge pull request #19 from ymherklotz/develop
Develop
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