Ndk/Components: Added OnComponent[Attached|Detacted] events

And m_entity member variable


Former-commit-id: d6bd9e382e55bafd357e7ec62862ae731c21f897
This commit is contained in:
Lynix
2015-04-20 01:54:09 +02:00
parent a7be4c6346
commit 5b44619592
4 changed files with 55 additions and 7 deletions

View File

@@ -7,7 +7,8 @@
namespace Ndk
{
inline BaseComponent::BaseComponent(ComponentIndex index) :
m_componentIndex(index)
m_componentIndex(index),
m_entity(nullptr)
{
}
@@ -35,6 +36,11 @@ namespace Ndk
return index;
}
inline void BaseComponent::SetEntity(Entity* entity)
{
m_entity = entity;
}
inline bool BaseComponent::Initialize()
{
// Rien à faire