Class ContextVariableManager
The context variable manager handles all contexts (except event context) existing variables declared in the scenario to help the user selecting existing variable paths
Namespace: Xareus.Scenarios.Unity.Edition
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
[Serializable]
public class ContextVariableManager : ScriptableObject
Fields
scenarioWrapper
Declaration
[SerializeField]
public ScenarioWrapper scenarioWrapper
Field Value
Type | Description |
---|---|
ScenarioWrapper |
Properties
ContextsVariables
Contains the variable for each existing context (except event context)
Declaration
public SerializableDictionary<ContextType, ContextVariableManager.SerializedContextVariables> ContextsVariables { get; }
Property Value
Type | Description |
---|---|
SerializableDictionary<ContextType, ContextVariableManager.SerializedContextVariables> |
Methods
AddVariable(ContextType, string)
Add a variable in the given context if it's not already present
Declaration
public void AddVariable(ContextType context, string returnValue)
Parameters
Type | Name | Description |
---|---|---|
ContextType | context | |
string | returnValue |
Init(ScenarioWrapper)
Initializes the variable manager from the current wrapper
Declaration
public void Init(ScenarioWrapper scenarioWrapper)
Parameters
Type | Name | Description |
---|---|---|
ScenarioWrapper | scenarioWrapper |