zerk.game.engine.registry Class
Game Engine Registry
Configuration manager.
Methods
getValue
(
Any
-
key
Retrieve a value by given key
Parameters:
-
key
StringKey
Returns:
Any:
Value
init
(
-
engine
-
data
Class constructor
Parameters:
-
engine
zerk.game.engineGame engine
-
data
ObjectInitial configuration
register
(
Object
-
register
-
defaults
Registers a new configuration group to the registry
Parameters:
-
register
StringName of the group
-
defaults
ObjectDefault values
Returns:
Object:
Handle to the registry storage
setValue
(
-
key
-
value
Set a value by given key
Parameters:
-
key
StringKey
-
value
AnyValue
Properties
_data
Object
protected
Registry storage