struct ECS::Builtins::Component

Included Modules

Extended Modules

Defined in:

flecs/builtins.cr

Constant Summary

ECS_NAME = "Component"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(size : Int32, alignment : Int32) #

[View source]

Class Method Detail

def self.ecs_name #

def self.id(world : ECS::World) #

def self.is_extern? #

Instance Method Detail

def alignment : Int32 #

[View source]
def alignment=(alignment : Int32) #

[View source]
def size : Int32 #

[View source]
def size=(size : Int32) #

[View source]
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.