EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.VariableHandler Class Reference

Singleton that bind variables to the game parameters from GameParameters.cs It will update the state of the variables each time the game parameter bind to them changes. More...

Inherits MonoBehaviour.

Public Member Functions

void UpdateRoutine (Subject subject)
 This method will update all the variables binded to the Game Parameter "subject".
 
void Register (string Key, egVar var)
 Register a variable to the variableHandler and keep it updated as the parameters changes.
 

Detailed Description

Singleton that bind variables to the game parameters from GameParameters.cs It will update the state of the variables each time the game parameter bind to them changes.

Member Function Documentation

◆ Register()

void Enablegames.VariableHandler.Register ( string Key,
egVar var )
inline

Register a variable to the variableHandler and keep it updated as the parameters changes.

Parameters
Keythe key represent the aslias of the parameters. Use the static class egParameterStrings to have access to the avaiable keys
var
Here is the call graph for this function:

◆ UpdateRoutine()

void Enablegames.VariableHandler.UpdateRoutine ( Subject subject)
inline

This method will update all the variables binded to the Game Parameter "subject".

Parameters
subjectGame Parameters inherit Subject class
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: