From 8600781bb6142e0bed29aaf127007c5e8a2c7b3e Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 8 Jun 2018 17:51:22 +0200 Subject: [PATCH] fixed doc + minor changes --- src/entt/entity/actor.hpp | 4 ++-- src/entt/entity/entt_traits.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entt/entity/actor.hpp b/src/entt/entity/actor.hpp index b82757722..b30070e93 100644 --- a/src/entt/entity/actor.hpp +++ b/src/entt/entity/actor.hpp @@ -170,7 +170,7 @@ struct Actor { * @brief Returns a reference to the underlying registry. * @return A reference to the underlying registry. */ - const registry_type & registry() const ENTT_NOEXCEPT { + inline const registry_type & registry() const ENTT_NOEXCEPT { return reg; } @@ -186,7 +186,7 @@ struct Actor { * @brief Returns the entity associated with an actor. * @return The entity associated with the actor. */ - entity_type entity() const ENTT_NOEXCEPT { + inline entity_type entity() const ENTT_NOEXCEPT { return entt; } diff --git a/src/entt/entity/entt_traits.hpp b/src/entt/entity/entt_traits.hpp index 241329fb2..1114938b1 100644 --- a/src/entt/entity/entt_traits.hpp +++ b/src/entt/entity/entt_traits.hpp @@ -47,8 +47,8 @@ struct entt_traits { * * A 32 bits entity identifier guarantees: * - * * 24 bits for the entity number (suitable for almost all the games). - * * 8 bit for the version (resets in [0-255]). + * * 20 bits for the entity number (suitable for almost all the games). + * * 12 bit for the version (resets in [0-4095]). */ template<> struct entt_traits {