Class ScenarioTabHandler
A tab handler for scenarios. This class is necessary because VisualElements cannot be serialized.
Inheritance
ScenarioTabHandler
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
[Serializable]
public class ScenarioTabHandler : ScriptableObject, IToolbarEntryData, IScenarioEventHandler
Fields
Played
Declaration
[SerializeField]
public bool Played
Field Value
Properties
ButtonText
Declaration
public string ButtonText { get; }
Property Value
Canvas
Declaration
public CanvasUI Canvas { get; }
Property Value
IsPlaying
Declaration
public bool IsPlaying { get; set; }
Property Value
LayerIds
Declaration
public List<string> LayerIds { get; }
Property Value
Position
Access to the canvas offset (Relative to the virtual space point of reference)
Declaration
public Vector2 Position { get; set; }
Property Value
ScenarioId
Declaration
public string ScenarioId { get; }
Property Value
ScenarioWrapper
Declaration
public ScenarioWrapper ScenarioWrapper { get; set; }
Property Value
Tab
Declaration
Property Value
Zoom
Access to the canvas zoom
Declaration
public float Zoom { get; set; }
Property Value
Methods
BeforeStopPlaying()
Declaration
public void BeforeStopPlaying()
HandleEvent(EventBase, Identifiable)
Declaration
public void HandleEvent(EventBase e, Identifiable source)
Parameters
Init(Scenario, string, SequenceType)
Declaration
public void Init(Scenario scenario, string scenarioFilePath = "", SequenceType sequenceType = SequenceType.PetriNet)
Parameters
OnDestroy()
OnDestroy is called when the tab is closed, but not on domain reload (entering/quitting playmode) or recompilation
Declaration
OnEnable()
Declaration
Reload()
Declaration
StopPlaying()
Declaration
public void StopPlaying()
Implements