Class RuntimeScenarioFileRegistry
The runtime scenario file registry is used to keep track of the scenario files used at runtime, including external scenarios
Inherited Members
UnitySingleton<RuntimeScenarioFileRegistry>.ShouldNotDestroyOnLoad
UnitySingleton<RuntimeScenarioFileRegistry>.Instance
UnitySingleton<RuntimeScenarioFileRegistry>.OnApplicationQuit()
UnitySingleton<RuntimeScenarioFileRegistry>.OnDestroy()
Namespace: Xareus.Scenarios.Unity
Assembly: Xareus.Scenarios.Unity.dll
Syntax
public class RuntimeScenarioFileRegistry : UnitySingleton<RuntimeScenarioFileRegistry>
Fields
scenarioFilesUsed
Declaration
[SerializeField]
protected List<AdditionalScenarioFile> scenarioFilesUsed
Field Value
Type | Description |
---|---|
List<AdditionalScenarioFile> |
Methods
AddScenarioFileUsed(AdditionalScenarioFile)
Add a scenario file to the list of scenario files used
Declaration
public void AddScenarioFileUsed(AdditionalScenarioFile additionalScenarioFile)
Parameters
Type | Name | Description |
---|---|---|
AdditionalScenarioFile | additionalScenarioFile |
AddScenarioFilesUsed(IEnumerable<AdditionalScenarioFile>)
Add a list of scenario files to the list of scenario files used
Declaration
public void AddScenarioFilesUsed(IEnumerable<AdditionalScenarioFile> additionalScenarioFiles)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AdditionalScenarioFile> | additionalScenarioFiles |
GetScenarioFile(TextAsset)
Get the scenario file record corresponding to a text asset
Declaration
public AdditionalScenarioFile GetScenarioFile(TextAsset textAsset)
Parameters
Type | Name | Description |
---|---|---|
TextAsset | textAsset |
Returns
Type | Description |
---|---|
AdditionalScenarioFile |