Resources class
Container for global singleton resources.
Resources are stored by type and can be accessed using get, getOrInsert, or through Res and ResMut wrappers in systems.
Constructors
Properties
Methods
-
clear(
) → void - Clears all resources.
-
contains<
T> () → bool -
Returns true if a resource of type
Texists. -
get<
T> () → T? -
Gets a resource of type
T. -
getOrInsert<
T> (T defaultValue()) → T -
Gets a resource of type
T, inserting a default if it doesn't exist. -
insert<
T> (T resource) → void -
Inserts a resource of type
T. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove<
T> () → T? -
Removes a resource of type
T. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited