API Docs for: 0.1.0
Show:

zerk.game.engine.registry Class

Game Engine Registry

Configuration manager.

Item Index

Properties

Methods

getValue

(
  • key
)
Any

Retrieve a value by given key

Parameters:

  • key String

    Key

Returns:

Any: Value

init

(
  • engine
  • data
)

Class constructor

Parameters:

register

(
  • register
  • defaults
)
Object

Registers a new configuration group to the registry

Parameters:

  • register String

    Name of the group

  • defaults Object

    Default values

Returns:

Object: Handle to the registry storage

setValue

(
  • key
  • value
)

Set a value by given key

Parameters:

  • key String

    Key

  • value Any

    Value

Properties

_data

Object protected

Registry storage