Ndk/Components: Added OnComponent[Attached|Detacted] events
And m_entity member variable Former-commit-id: d6bd9e382e55bafd357e7ec62862ae731c21f897
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user