diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-22 00:08:12 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-22 00:08:12 +0100 |
commit | 3702e753a5f7b31c31261c968757e19e808a84ec (patch) | |
tree | 2cbfdab552025af7a8772069b9f9935f9c9f387f /yage/entity/component.cpp | |
parent | f4b6f813db1721421cadaf906c2763546e0190b4 (diff) | |
download | YAGE-3702e753a5f7b31c31261c968757e19e808a84ec.tar.gz YAGE-3702e753a5f7b31c31261c968757e19e808a84ec.zip |
Adding components implementation
Diffstat (limited to 'yage/entity/component.cpp')
-rw-r--r-- | yage/entity/component.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/yage/entity/component.cpp b/yage/entity/component.cpp index 83fe4424..eba2ad0a 100644 --- a/yage/entity/component.cpp +++ b/yage/entity/component.cpp @@ -1,6 +1,8 @@ #include "component.h" -GroupId BaseComponent::getGroup() { - static GroupId group_id = group_id_counter_++; - return group_id; -} +namespace yage +{ + +GroupId BaseComponent::group_id_counter_ = 0; + +} // namespace yage |