Class ScenarioSerializer
Manages scenario serialization
Inheritance
ScenarioSerializer
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
public class ScenarioSerializer : IScenarioSerializer
Properties
Instance
Declaration
public static ScenarioSerializer Instance { get; }
Property Value
Methods
Deserialize(string, string)
Declaration
public Scenario Deserialize(string sourcePath, string relativePath = "")
Parameters
Type |
Name |
Description |
string |
sourcePath |
Main scenario path
|
string |
relativePath |
Relative path of the current scenario to the main scenario
|
Returns
Serialize(Scenario)
Serializes a scenario into a string
Declaration
public static string Serialize(Scenario source)
Parameters
Returns
Serialize(Scenario, string)
Declaration
public bool Serialize(Scenario source, string destinationPath)
Parameters
Returns
Implements