ECS::Builtins::Component
Inherits ECS::DSL::Component < Struct < Value < Object
Constants
ECS_NAME = "Component"
Constructors
new(size : Int32, alignment : Int32)
SourceClass methods
ecs_name
id(world : ECS::World)
is_extern?
Instance methods
alignment
Sourcealignment=(alignment : Int32)
Sourcesize
Sourcesize=(size : Int32)
Sourcewith_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.