diff --git a/SDK/include/NDK/Algorithm.hpp b/SDK/include/NDK/Algorithm.hpp index 7c8de5a31..ece1d5d37 100644 --- a/SDK/include/NDK/Algorithm.hpp +++ b/SDK/include/NDK/Algorithm.hpp @@ -11,16 +11,13 @@ namespace Ndk { - class BaseComponent; - class BaseSystem; - template ComponentId BuildComponentId(const char (&name)[N]); template constexpr ComponentIndex GetComponentIndex(); template constexpr SystemIndex GetSystemIndex(); template ComponentIndex InitializeComponent(const char (&name)[N]); template SystemIndex InitializeSystem(); - template bool IsComponent(BaseComponent& component); - template bool IsSystem(BaseSystem& system); + template bool IsComponent(C& component); + template bool IsSystem(S& system); } #include diff --git a/SDK/include/NDK/Algorithm.inl b/SDK/include/NDK/Algorithm.inl index 8392e0ed6..e79e3a901 100644 --- a/SDK/include/NDK/Algorithm.inl +++ b/SDK/include/NDK/Algorithm.inl @@ -3,8 +3,6 @@ // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #include -#include -#include namespace Ndk { @@ -47,14 +45,14 @@ namespace Ndk return SystemType::systemIndex; } - template - bool IsComponent(BaseComponent& component) + template + bool IsComponent(C& component) { return component.GetIndex() == GetComponentIndex(); } - template - bool IsSystem(BaseSystem& system) + template + bool IsSystem(S& system) { return system.GetIndex() == GetSystemIndex(); }