#include "Meta/Matching.hpp"
#include "Meta/ForEachWithIndex.hpp"
#include "Meta/ForEachDoubleTuple.hpp"
-#include "Meta/IndexOf.hpp"
#include "Bitset.hpp"
+ #include "ThreadPool.hpp"
+
namespace EC
{
/*!
{
return;
}
-
- std::get<BitsetType>(
- entities[entityID]
- ).template getTagBit<Tag>() = true;
+ else
+ {
+ if(!isAlive(entityID))
+ {
+ return;
+ }
+ std::get<BitsetType>(
+ entities[entityID]
+ ).template getTagBit<Tag>() = true;
+ }
}
- /*!
- \brief Removes the given Tag from the given Entity.
+ /*!
+ \brief Removes the given Tag from the given Entity.
- If the Entity does not have the Tag given, nothing will change.
+ If the Entity does not have the Tag given, nothing will change.
- Example:
- \code{.cpp}
- manager.removeTag<T0>(entityID);
- \endcode
- */
+ Example:
+ \code{.cpp}
+ manager.removeTag<T0>(entityID);
+ \endcode
+ */
template <typename Tag>
void removeTag(const std::size_t& entityID)
{