Engine → ECS → component.h
component_info
| Type | Struct |
| Namespace | conjure::core::json |
| Include File Path | engine/include/conjure/ecs/component.h |
| Source File Path | N/A |
| API ↗ | Entities and components |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | alignment | u32 | 1 | |
| public | asset | std::vector<u32> | {} | |
| public | defaultValue | std::vector<std::byte> | {} | |
| public | entity | std::vector<u32> | {} | |
| public | flags | component_flags | component_ | |
| public | id | component_id | {} | |
| public | name | core::string_id | {} | |
| public | ops | component_ops | {} | |
| public | reflection | const core:: | nullptr | |
| public | serializer | component_serializer | {} | |
| public | size | u32 | 0 |
Functions
Public
is_tag
is_tag[[nodiscard]] bool is_tag() const noexcept;True when the type has the TAG flag (no storage).
is_transient
is_transient[[nodiscard]] bool is_transient() const noexcept;True when the type is never serialised.