Created
February 12, 2017 16:55
-
-
Save adam4813/d7db03a3cbe44976410201a939cc4b2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.hpp | |
template <int> | |
struct ComponentList { | |
static std::set<eid> entities; | |
}; | |
template<> std::set<eid> ComponentList<proto::Component::kLuaScript>::entities; | |
template<> std::set<eid> ComponentList<proto::Component::kPosition>::entities; | |
template<> std::set<eid> ComponentList<proto::Component::kOrientation>::entities; | |
.cpp | |
auto test1 = ComponentList<proto::Component::kLuaScript>::entities.begin(); | |
auto test2 = ComponentList<proto::Component::kPosition>::entities.begin(); | |
auto test3 = ComponentList<proto::Component::kOrientation>::entities.begin(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment