From 1ab09188dd283bc358fec988d8b3c3d5444960fc Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 14 Aug 2015 14:17:54 +0200 Subject: [PATCH] SDK/Entity: Fix warnings Former-commit-id: 3e503fbe24ef56f60f4b7e04367904de3948910a --- SDK/include/NDK/Entity.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/SDK/include/NDK/Entity.hpp b/SDK/include/NDK/Entity.hpp index 4ad4f86aa..508930e94 100644 --- a/SDK/include/NDK/Entity.hpp +++ b/SDK/include/NDK/Entity.hpp @@ -34,20 +34,20 @@ namespace Ndk EntityHandle CreateHandle(); - BaseComponent& GetComponent(ComponentIndex index); + inline BaseComponent& GetComponent(ComponentIndex index); template ComponentType& GetComponent(); - const NzBitset<>& GetComponentBits() const; - EntityId GetId() const; - const NzBitset<>& GetSystemBits() const; - World* GetWorld() const; + inline const NzBitset<>& GetComponentBits() const; + inline EntityId GetId() const; + inline const NzBitset<>& GetSystemBits() const; + inline World* GetWorld() const; - bool HasComponent(ComponentIndex index) const; + inline bool HasComponent(ComponentIndex index) const; template bool HasComponent() const; void Kill(); void Invalidate(); - bool IsValid() const; + inline bool IsValid() const; void RemoveAllComponents(); void RemoveComponent(ComponentIndex index); @@ -62,10 +62,10 @@ namespace Ndk void Create(); void Destroy(); - void RegisterHandle(EntityHandle* handle); - void RegisterSystem(SystemIndex index); - void UnregisterHandle(EntityHandle* handle); - void UnregisterSystem(SystemIndex index); + inline void RegisterHandle(EntityHandle* handle); + inline void RegisterSystem(SystemIndex index); + inline void UnregisterHandle(EntityHandle* handle); + inline void UnregisterSystem(SystemIndex index); std::vector> m_components; std::vector m_handles;