struct

ECS::Builtins::Component

Inherits ECS::DSL::Component < Struct < Value < Object

Constants

ECS_NAME = "Component"

Constructors

new(size : Int32, alignment : Int32)
Source

Class methods

ecs_name
id(world : ECS::World)
is_extern?

Instance methods

alignment
Source
alignment=(alignment : Int32)
Source
size
Source
size=(size : Int32)
Source
with_alignment(value)

Update the alignment and return self for chaining.

This is useful for mutating a struct because it ensures that the mutated instance of the struct is what is returned.

with_size(value)

Update the size and return self for chaining.

This is useful for mutating a struct because it ensures that the mutated instance of the struct is what is returned.