struct

Entitas::SafeAERC

Inherits Entitas::AERC / Struct / Value / Object

Automatic Entity Reference Counting (AERC) is used internally to prevent pooling retained entities. If you use retain manually you also have to release it manually at some point. SafeAERC checks if the entity has already been retained or released. It's slower, but you keep the information about the owners.

Constructors

new(entity : Entitas::Entity)
Source

Instance methods

includes?(id : UInt64)
Source
includes?(owner)
Source
owners
Source
release(owner)
Source
retain(owner)
Source
retain_count
Source