Skip to content

Engine → ECS → component.h

component_info

Syntax

struct component_info

Variables

AccessNameTypeDefaultDescription
publicalignmentu321
publicassetRefFieldOffsetsstd::vector<u32>{}
publicdefaultValuestd::vector<std::byte>{}
publicentityFieldOffsetsstd::vector<u32>{}
publicflagscomponent_flagscomponent_flags::NONE
publicidcomponent_id{}
publicnamecore::string_id{}
publicopscomponent_ops{}
publicreflectionconst core::reflect::type_info *nullptr
publicserializercomponent_serializer{}
publicsizeu320

Functions

Public

is_tag

[[nodiscard]] bool is_tag() const noexcept;

True when the type has the TAG flag (no storage).

is_transient

[[nodiscard]] bool is_transient() const noexcept;

True when the type is never serialised.

is_trivial

[[nodiscard]] bool is_trivial() const noexcept;

True when the type is relocated and copied with memcpy and needs no destructor.