struct ECS::Builtins::Component
- ECS::Builtins::Component
- Struct
- Value
- Object
Included Modules
Extended Modules
Defined in:
flecs/builtins.crConstant Summary
-
ECS_NAME =
"Component"
Constructors
Class Method Summary
Instance Method Summary
- #alignment : Int32
- #alignment=(alignment : Int32)
- #size : Int32
- #size=(size : Int32)
-
#with_alignment(value)
Update the alignment and return self for chaining.
-
#with_size(value)
Update the size and return self for chaining.
Constructor Detail
Class Method Detail
Instance Method Detail
def 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.
def 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.