struct ECS::Builtins::Member

Included Modules

Extended Modules

Defined in:

flecs/builtins.cr

Constant Summary

ECS_NAME = "flecs.meta.Member"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(type : UInt64, count : Int32) #

[View source]

Class Method Detail

def self.ecs_name #

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

def self.is_extern? #

Instance Method Detail

def count : Int32 #

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

[View source]
def type : UInt64 #

[View source]
def type=(type : UInt64) #

[View source]
def with_count(value) #

Update the count 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_type(value) #

Update the type 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.