Sdk/Entity: Add enable/disable mechanism

Former-commit-id: 09884bdacf2b573bef516936d2580942cc5d4f66
This commit is contained in:
Lynix
2015-12-10 23:50:09 +01:00
parent 4a71fb2922
commit 8adc0097df
4 changed files with 20 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ namespace Ndk
EntityHandle CreateHandle();
inline void Enable(bool enable);
inline BaseComponent& GetComponent(ComponentIndex index);
template<typename ComponentType> ComponentType& GetComponent();
inline const Nz::Bitset<>& GetComponentBits() const;
@@ -47,6 +49,7 @@ namespace Ndk
void Kill();
void Invalidate();
inline bool IsEnabled() const;
inline bool IsValid() const;
void RemoveAllComponents();
@@ -73,6 +76,7 @@ namespace Ndk
Nz::Bitset<> m_systemBits;
EntityId m_id;
World* m_world;
bool m_enabled;
bool m_valid;
};
}