Ndk/Algorithm: Added Is[Component|System] function
Former-commit-id: 946f5081cea0b8df7faf0e95cfea2a3e5dd9f7bb
This commit is contained in:
@@ -11,11 +11,16 @@
|
||||
|
||||
namespace Ndk
|
||||
{
|
||||
class BaseComponent;
|
||||
class BaseSystem;
|
||||
|
||||
template<unsigned int N> ComponentId BuildComponentId(const char (&name)[N]);
|
||||
template<typename ComponentType> constexpr ComponentIndex GetComponentIndex();
|
||||
template<typename SystemType> constexpr SystemIndex GetSystemIndex();
|
||||
template<typename ComponentType, unsigned int N> ComponentIndex InitializeComponent(const char (&name)[N]);
|
||||
template<typename SystemType> SystemIndex InitializeSystem();
|
||||
template<typename ComponentType> bool IsComponent(BaseComponent& component);
|
||||
template<typename SystemType> bool IsSystem(BaseSystem& system);
|
||||
}
|
||||
|
||||
#include <Ndk/Algorithm.inl>
|
||||
|
||||
Reference in New Issue
Block a user