Skip to content

Scene Class

Komefai edited this page Jan 7, 2018 · 8 revisions

Scene is the base class for all scenes.

Syntax

public abstract class Scene

Abstract Properties

You should override these properties.


Name

abstract public string Name { get; }

Name of the scene.


Abstract Methods

You should override these methods.


Match

abstract public bool Match(ScriptBase script);

Test a condition to match this scene.


OnMatched

abstract public void OnMatched(ScriptBase script);

Called when the scene is matched.


Static Methods


Search

public static Scene Search(ScriptBase script)

Sort by search priority (frequent scenes first).


CreateID

public static string CreateID(Scene instance, string name)

Create a unique ID for a scene. Format: $"{instance.Name}_{name}"