Skip to content

Engine → ECS → entity.h

entity

Syntax

struct entity

Variables

AccessNameTypeDefaultDescription
publicgenerationu320
publicindexu320

Functions

Public

archive_local

[[nodiscard]] static constexpr entity archive_local(
    u32 localIndex) noexcept;

An archive-local reference to entry localIndex.

from_u64

[[nodiscard]] static constexpr entity from_u64(
    u64 packed) noexcept;

Inverse of to_u64().

is_archive_local

[[nodiscard]] constexpr bool is_archive_local() const noexcept;

True when this handle is a local index inside an entity_archive.

is_null

[[nodiscard]] constexpr bool is_null() const noexcept;

True for NULL_ENTITY (index 0, generation 0).

to_u64

[[nodiscard]] constexpr u64 to_u64() const noexcept;

(generation << 32) | index, the packed form handed to C#.

Operator Overloads

Public

operator==

[[nodiscard]] constexpr bool operator==(
    const entity &other) const noexcept = default;