Class AUnityContextInit
Namespace: Xareus.Scenarios.Unity
Assembly: Xareus.Scenarios.Unity.dll
Syntax
public abstract class AUnityContextInit : AContextInit
Constructors
AUnityContextInit(Scenario, Dictionary<string, Parameter>, IContext)
Declaration
public AUnityContextInit(Scenario scenario, Dictionary<string, Parameter> parameters, IContext externalContext)
Parameters
Type | Name | Description |
---|---|---|
Scenario | scenario | |
Dictionary<string, Parameter> | parameters | |
IContext | externalContext |
Methods
ContextInit()
Declaration
public override IContext ContextInit()
Returns
Type | Description |
---|---|
IContext |
Overrides
FillParameters()
Override the base method as we need to execute this in the Unity thread
Declaration
public override void FillParameters()
Overrides
Reset()
Declaration
public override void Reset()
Overrides
SafeContextInit()
Actual context init code. Note that this code will be executed in unity's thread
Declaration
public abstract IContext SafeContextInit()
Returns
Type | Description |
---|---|
IContext |
SafeReset()
Reset a context init. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public virtual void SafeReset()
UnityThreadFillParameters()
Declaration
protected virtual void UnityThreadFillParameters()