This commit is contained in:
Isuru Samarathunga
2025-10-30 23:40:39 +05:30
parent 4e41048352
commit 7530303389
3 changed files with 27 additions and 5 deletions

View File

@ -24,7 +24,7 @@ namespace ia::iae
class IComponent
{
public:
public:
PURE_VIRTUAL(VOID Draw());
PURE_VIRTUAL(VOID DebugDraw());
PURE_VIRTUAL(VOID Update());
@ -45,7 +45,18 @@ namespace ia::iae
return m_node;
}
BOOL &IsEnabled()
{
return m_isEnabled;
}
BOOL IsEnabled() CONST
{
return m_isEnabled;
}
protected:
Node2D *CONST m_node{};
BOOL m_isEnabled{true};
};
} // namespace ia::iae

View File

@ -38,7 +38,18 @@ namespace ia::iae
return m_name;
}
BOOL &IsEnabled()
{
return m_isEnabled;
}
BOOL IsEnabled() CONST
{
return m_isEnabled;
}
protected:
CONST String m_name;
BOOL m_isEnabled{true};
};
} // namespace ia::iae