class Entitas::Contexts
- Entitas::Contexts
- Reference
- Object
Overview
This class gives access to each availble context.
Defined in:
entitas.crentitas/contexts.cr
entitas/generators/contexts.cr
entitas/macros/contexts.cr
Constructors
Class Method Summary
-
.shared_instance : Entitas::Contexts
This returns a pre-instantiated
Entitas::Contexts
instance which is available at the global scope.
Instance Method Summary
-
#all_contexts : Array(Entitas::IContext)
Returns an array containing each available context
- #each(&)
-
#get_context_by_name(name : String)
Returns the context with the provided name, or nil
-
#initialize_entity_indices
Will be called after initialization to intitialze each
EntityIndex
for all of the contexts. -
#reset
Will call
Entitas::Context#reset
on each context. - #shared_instance : Entitas::Contexts
- #to_json(json : JSON::Builder)
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def initialize_entity_indices
#
Will be called after initialization to intitialze each EntityIndex
for
all of the contexts.