(Component) Added clone virtual method

Replaced Component<C>::GetId by GetComponentId<C>()


Former-commit-id: 4fae3f73c7fad0a5c36dae16e49b6f12c8bf6ae2
This commit is contained in:
Lynix
2015-03-01 11:21:58 +01:00
parent 8b77825fb8
commit 9c0c991fe0
3 changed files with 18 additions and 3 deletions

View File

@@ -19,8 +19,11 @@ namespace Ndk
Component();
virtual ~Component();
static nzUInt32 GetId();
virtual BaseComponent* Clone() const override;
};
template<typename ComponentType>
constexpr nzUInt32 GetComponentId();
}
#include <NDK/Component.inl>