class

ECS::World::Root

Inherits Reference < Object

This is our internal mutable state container for the world, where we will put anything we need to access from Crystal which isn't in flecs.

In it, we can store the equivalent of global variables as properties.

These properties are not truly global because each World has its own Root. The properties will be defined in other files, often from within macros.

Instance methods

_id_for_ECS__Builtins__Component

The id of the Component component is stored here in the World Root.

_id_for_ECS__Builtins__Component=(_id_for_ECS__Builtins__Component : UInt64)

The id of the Component component is stored here in the World Root.

_id_for_ECS__Builtins__Member

The id of the Member component is stored here in the World Root.

_id_for_ECS__Builtins__Member=(_id_for_ECS__Builtins__Member : UInt64)

The id of the Member component is stored here in the World Root.

_id_for_ECS__Builtins__OnAdd

The id of the OnAdd entity is stored here in the World Root.

_id_for_ECS__Builtins__OnAdd=(_id_for_ECS__Builtins__OnAdd : UInt64)

The id of the OnAdd entity is stored here in the World Root.

_id_for_ECS__Builtins__OnDelete

The id of the OnDelete entity is stored here in the World Root.

_id_for_ECS__Builtins__OnDelete=(_id_for_ECS__Builtins__OnDelete : UInt64)

The id of the OnDelete entity is stored here in the World Root.

_id_for_ECS__Builtins__OnRemove

The id of the OnRemove entity is stored here in the World Root.

_id_for_ECS__Builtins__OnRemove=(_id_for_ECS__Builtins__OnRemove : UInt64)

The id of the OnRemove entity is stored here in the World Root.

_id_for_ECS__Builtins__OnSet

The id of the OnSet entity is stored here in the World Root.

_id_for_ECS__Builtins__OnSet=(_id_for_ECS__Builtins__OnSet : UInt64)

The id of the OnSet entity is stored here in the World Root.

_id_for_ECS__Builtins__UnSet

The id of the UnSet entity is stored here in the World Root.

_id_for_ECS__Builtins__UnSet=(_id_for_ECS__Builtins__UnSet : UInt64)

The id of the UnSet entity is stored here in the World Root.