StoreRegistry class final
Maps component types to stores.
Constructors
Properties
-
all
→ Iterable<
ComponentStore> -
All registered stores. Used by despawn to strip an entity from every
store it might belong to.
no setter
-
entries
→ Iterable<
(Type, ComponentStore)> -
Stores with their component types.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensureObject<
T> () → ObjectComponentStore< T> -
Returns the object store for
T, creating it with one map lookup when absent. -
ensureTag<
T> () → TagStore -
Returns the tag store for
T, creating it with one map lookup when absent. -
isRegistered(
Type type) → bool -
Whether a store is registered for
type. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
object<
T> () → ObjectComponentStore< T> -
The object store for component type
T. -
register<
T> (ComponentStore store) → void -
Registers
storeas the store for component typeT. Throws if a store forTis already registered. -
require(
Type type) → ComponentStore -
The store registered for
type, or throws if none exists. -
tag<
T> () → TagStore -
The tag store for tag type
T. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited