@skewedaspect/sage 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,11 @@ export declare abstract class Level<Registry extends NodeEntityRegistry = NodeEn
50
50
  * into a fresh one (design/simulation.md#saved-games).
51
51
  */
52
52
  $adoptSimulation(simulation: NodeSimulation<Registry>): void;
53
+ /**
54
+ * Builds an empty scene through the scene engine and makes it this level's scene at once
55
+ * (design/levels.md#the-base-class).
56
+ */
57
+ protected createScene(): Scene;
53
58
  /**
54
59
  * Builds this level's simulation for the scene it just created, named after the level, and keeps it. A
55
60
  * subclass calls this from `buildScene` before it spawns anything, since a NodeEntity constructs its node
@@ -95,6 +95,11 @@ export declare class LevelManager<Registry extends NodeEntityRegistry = NodeEnti
95
95
  /** The level loaded under this name, or nothing when none is loaded under it. */
96
96
  getLevel(name: string): Level<Registry> | null;
97
97
  /** The configuration registered under this name, or nothing when none is. */
98
+ /**
99
+ * Unloads the level registered under the name if it is loaded, then forgets its configuration
100
+ * (design/levels.md#configurations-and-classes).
101
+ */
102
+ unregisterLevelConfig(name: string): Promise<void>;
98
103
  getLevelConfig(name: string): LevelConfig | null;
99
104
  /**
100
105
  * Loads the level a registered name points at, or the one a configuration carries, registering that