Sdk/BaseComponent: Add GetMaxComponentIndex static method

Former-commit-id: b3413066bcb5b9f7b7b84092a2645154ad6d8005
This commit is contained in:
Lynix
2016-03-31 20:15:38 +02:00
parent 9b988f8960
commit a2f6e54104
2 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <Ndk/BaseComponent.hpp>
#include <Nazara/Core/Error.hpp>
namespace Ndk
@@ -17,6 +18,11 @@ namespace Ndk
return m_componentIndex;
}
inline ComponentIndex BaseComponent::GetMaxComponentIndex()
{
return static_cast<ComponentIndex>(s_entries.size());
}
inline ComponentIndex BaseComponent::RegisterComponent(ComponentId id, Factory factoryFunc)
{
// Nous allons rajouter notre composant à la fin