From: Stephen Seo Date: Fri, 4 Mar 2016 12:39:25 +0000 (+0900) Subject: Changed Bitset to use Combined lists X-Git-Tag: 1.0~119 X-Git-Url: https://git.seodisparate.com/server_config?a=commitdiff_plain;h=9c5894520f4207092ab48ba9be4fb1290a2591ff;p=EntityComponentMetaSystem Changed Bitset to use Combined lists --- diff --git a/src/EC/Bitset.hpp b/src/EC/Bitset.hpp index 6ddd1d3..f95470d 100644 --- a/src/EC/Bitset.hpp +++ b/src/EC/Bitset.hpp @@ -4,6 +4,7 @@ #include #include "Meta/TypeList.hpp" +#include "Meta/Combine.hpp" namespace EC { @@ -11,16 +12,18 @@ namespace EC struct Bitset : public std::bitset { + using Combined = EC::Meta::Combine; + template constexpr auto getComponentBit() { - return (*this)[EC::Meta::IndexOf::value]; + return (*this)[EC::Meta::IndexOf::value]; } template constexpr auto getTagBit() { - return (*this)[ComponentsList::size + EC::Meta::IndexOf::value]; + return (*this)[EC::Meta::IndexOf::value]; } }; }