fixed doc + minor changes

This commit is contained in:
Michele Caini
2018-06-08 17:51:22 +02:00
parent bdc7bbdc9d
commit 8600781bb6
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -47,8 +47,8 @@ struct entt_traits<std::uint16_t> {
*
* 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<std::uint32_t> {