Scene Class - NocturnalWisp/Tynted-Engine GitHub Wiki

Usage

Managing creation of a single scene.

Scene Handling

Handling various aspects of the scene.

Scene Name (Property)

Summary The name of the scene.

Type

  • string

Paused

Summary If the scene is paused.

Type

  • bool

Constructor (by file)

Summary Creates a new scene by file.

Implementation

Scene(string path, Dictionary<string, object> variables)

Vars

  • scene - Path to a scene "json" file.
  • variables - A dictionary of variables used by a scene file. Of no use for an empty scene.

Constructor (empty)

Summary Creates a new empty scene.

Implementation

Scene(string scene)

Vars

  • scene - The new scene name.

Entity Handling

Handling the entities a scene may have.

Entity Count (Property)

Summary The number of entities in the scene.

Type

  • int

Entities (Property)

Summary Returns a list of all the entities in the scene.

Type

  • List
⚠️ **GitHub.com Fallback** ⚠️