class

Garnet::Entity

Inherits Indexable < Enumerable < Iterable < Reference < Object

Instance methods

<<(action : Action)

Actions

Source
<<(sys : System)

Systems

Source
<<(entity : Entity)

Children

Source
<<(component : Component)

Components

Source
actions
Source
children
Source
components
Source
dead=(dead : Bool)
Source
dead?
Source
delete(action : Action)
Source
delete(sys : System)
Source
delete(entity : Entity)
Source
kill!
Source
size

Returns the number of elements in this container.

Source
systems
Source
unsafe_fetch(index : Int)

Returns the element at the given index, without doing any bounds check.

Indexable makes sure to invoke this method with index in 0...size, so converting negative indices to positive ones is not needed here.

Clients never invoke this method directly. Instead, they access elements with #[](index) and #[]?(index).

This method should only be directly invoked if you are absolutely sure the index is in bounds, to avoid a bounds check for a small boost of performance.

Source
update(delta_time : Float32)
Source