NDK/Entity: Fix warnings

Former-commit-id: fc36d794c8a8a8ff4eeda427b11fe583521a2a2d
This commit is contained in:
Lynix 2015-08-16 01:44:43 +02:00
parent ba1073828f
commit 90e8a8c669
1 changed files with 11 additions and 11 deletions

View File

@ -34,20 +34,20 @@ namespace Ndk
EntityHandle CreateHandle(); EntityHandle CreateHandle();
BaseComponent& GetComponent(ComponentIndex index); inline BaseComponent& GetComponent(ComponentIndex index);
template<typename ComponentType> ComponentType& GetComponent(); template<typename ComponentType> ComponentType& GetComponent();
const NzBitset<>& GetComponentBits() const; inline const NzBitset<>& GetComponentBits() const;
EntityId GetId() const; inline EntityId GetId() const;
const NzBitset<>& GetSystemBits() const; inline const NzBitset<>& GetSystemBits() const;
World* GetWorld() const; inline World* GetWorld() const;
bool HasComponent(ComponentIndex index) const; inline bool HasComponent(ComponentIndex index) const;
template<typename ComponentType> bool HasComponent() const; template<typename ComponentType> bool HasComponent() const;
void Kill(); void Kill();
void Invalidate(); void Invalidate();
bool IsValid() const; inline bool IsValid() const;
void RemoveAllComponents(); void RemoveAllComponents();
void RemoveComponent(ComponentIndex index); void RemoveComponent(ComponentIndex index);
@ -62,10 +62,10 @@ namespace Ndk
void Create(); void Create();
void Destroy(); void Destroy();
void RegisterHandle(EntityHandle* handle); inline void RegisterHandle(EntityHandle* handle);
void RegisterSystem(SystemIndex index); inline void RegisterSystem(SystemIndex index);
void UnregisterHandle(EntityHandle* handle); inline void UnregisterHandle(EntityHandle* handle);
void UnregisterSystem(SystemIndex index); inline void UnregisterSystem(SystemIndex index);
std::vector<std::unique_ptr<BaseComponent>> m_components; std::vector<std::unique_ptr<BaseComponent>> m_components;
std::vector<EntityHandle*> m_handles; std::vector<EntityHandle*> m_handles;