Current configuration.
Updated configuration. Will be applied when applyChanges gets called.
Applies the changes made to the updatedConfig to the real configuration.
Fetches the configuration of the genetic algorithm.
This is a shorthand for getProperty<GeneticAlgorithmConfiguration>('geneticAlgorithm')
;
The configuration for the genetic algorithm.
Fetches the configuration of a specific level.
This is a shorthand for getProperty<LevelConfiguration>('levels.levelNumber')
;
The number of the level. Must be valid.
The configuration for the specified level.
Gets the current value of a property of the configuration.
The type of the property.
The key of the property which should be returned. Must be given as path
starting the root of the configuration. Each level must be separated by a dot .
.
Example: gameSettings.verboseMode
would return the current value of the property verboseMode
inside the property gameSettings
.
Returns the value of the property in the specified type.
Checks whether human mode is enabled or not.
This is a shorthand for getProperty<boolean>('gameSettings.humanMode')
;
Returns true
if the human mode is enabled, else false
.
Checks whether verbose mode is enabled or not.
This is a shorthand for getProperty<boolean>('gameSettings.verboseMode')
;
Returns true
if the verbose mode is enabled, else false
.
Updates/Sets the value of a property in the configuration.
The type of the new value.
Note: Must match the type of the property.
The key of the property which should be updated/set. Must be given as path
starting the root of the configuration. Each level must be separated by a dot .
.
Example: gameSettings.verboseMode
would set the value of the property verboseMode
inside the property gameSettings
to a given value.
The new value of the property. Must be of the correct type.
Helper function realizing the setProperty method. This method recursively travers the current configuration and updates every occurrence in the path with its new value. If the last layer of the given key is reached, the config will be updated with the new value and the updated object will be returned. For any other layer the object at the current layer will be updated with the result of this method when called for the underlying layer.
The type of the new value.
Note: Must match the type of the property.
The config at the current layer.
The key of the property which should be updated/set. Must be given as path starting the root of the configuration.
The new value of the property.
Returns the updated config.
Updated the entire configuration.
The new configuration.
Generated using TypeDoc
Class containing the configuration for the MarbleEvolution game.
Add more configuration options.