aboutsummaryrefslogtreecommitdiffstats
path: root/yage/engine/entity.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-01-10 12:02:04 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-01-10 12:02:04 +0000
commita62fbea8d40f623ffcd60eced63f295cd55db084 (patch)
tree2374234d4364eb389df98fff0c4c180118331b27 /yage/engine/entity.cpp
parentcbd6bf4a695370dbfc088bbe0cd6f270e1c112a7 (diff)
downloadYAGE-a62fbea8d40f623ffcd60eced63f295cd55db084.tar.gz
YAGE-a62fbea8d40f623ffcd60eced63f295cd55db084.zip
[Engine] Adding initial components for an ECS.
Diffstat (limited to 'yage/engine/entity.cpp')
-rw-r--r--yage/engine/entity.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/yage/engine/entity.cpp b/yage/engine/entity.cpp
new file mode 100644
index 00000000..4d9a4b0a
--- /dev/null
+++ b/yage/engine/entity.cpp
@@ -0,0 +1,23 @@
+/** ---------------------------------------------------------------------------
+ * @file: entity.cpp
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
+ * MIT License, see LICENSE file for more details.
+ * ----------------------------------------------------------------------------
+ */
+
+#include "entity.h"
+
+#include "space.h"
+
+namespace yage
+{
+
+Entity::Entity(unsigned handle) : handle_(handle) {}
+
+unsigned Entity::getHandle() const
+{
+ return handle_;
+}
+
+} // naemspace yage