excalibur 0.33.0-alpha.255 → 0.33.0-alpha.258

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.
@@ -8,13 +8,13 @@ import type { DynamicTreeConfig } from '../physics-config';
8
8
  * Dynamic Tree Node used for tracking bounds within the tree
9
9
  */
10
10
  export declare class TreeNode<T> {
11
- parent?: TreeNode<T> | undefined;
12
- left?: TreeNode<T>;
13
- right?: TreeNode<T>;
11
+ parent: TreeNode<T> | null;
12
+ left: TreeNode<T> | null;
13
+ right: TreeNode<T> | null;
14
14
  bounds: BoundingBox;
15
15
  height: number;
16
- data?: T;
17
- constructor(parent?: TreeNode<T> | undefined);
16
+ data: T | null;
17
+ constructor(parent?: TreeNode<T> | null);
18
18
  isLeaf(): boolean;
19
19
  }
20
20
  export interface ColliderProxy<T> {
@@ -32,7 +32,7 @@ export interface ColliderProxy<T> {
32
32
  export declare class DynamicTree<TProxy extends ColliderProxy<Entity>> {
33
33
  private _config;
34
34
  worldBounds: BoundingBox;
35
- root?: TreeNode<TProxy>;
35
+ root: TreeNode<TProxy> | null;
36
36
  nodes: Record<number, TreeNode<TProxy>>;
37
37
  constructor(_config: Required<DynamicTreeConfig>, worldBounds?: BoundingBox);
38
38
  /**
@@ -69,11 +69,11 @@ export interface GoToOptions<TActivationData = any> {
69
69
  /**
70
70
  * Optionally supply destination scene "in" transition, this will override any previously defined transition
71
71
  */
72
- destinationIn?: Transition;
72
+ destinationIn?: Transition | null;
73
73
  /**
74
74
  * Optionally supply source scene "out" transition, this will override any previously defined transition
75
75
  */
76
- sourceOut?: Transition;
76
+ sourceOut?: Transition | null;
77
77
  /**
78
78
  * Optionally supply a different loader for the destination scene, this will override any previously defined loader
79
79
  */
@@ -91,8 +91,8 @@ export declare class Director<TKnownScenes extends string = any> {
91
91
  private _engine;
92
92
  events: EventEmitter<DirectorEvents>;
93
93
  private _logger;
94
- private _deferredGoto?;
95
- private _deferredTransition?;
94
+ private _deferredGoto;
95
+ private _deferredTransition;
96
96
  private _initialized;
97
97
  /**
98
98
  * Current scene's name
@@ -105,7 +105,7 @@ export declare class Director<TKnownScenes extends string = any> {
105
105
  /**
106
106
  * Current transition if any
107
107
  */
108
- currentTransition?: Transition;
108
+ currentTransition: Transition | null;
109
109
  /**
110
110
  * All registered scenes in Excalibur
111
111
  */
@@ -155,7 +155,7 @@ export declare class Director<TKnownScenes extends string = any> {
155
155
  * Returns a scene by name if it exists, might be the constructor and not the instance of a scene
156
156
  * @param name
157
157
  */
158
- getSceneDefinition(name?: string): Scene | SceneConstructor | undefined;
158
+ getSceneDefinition(name?: string): Scene | SceneConstructor | null;
159
159
  /**
160
160
  * Returns the name of the registered scene, null if none can be found
161
161
  * @param scene
@@ -192,7 +192,7 @@ export declare class Director<TKnownScenes extends string = any> {
192
192
  * This will call any constructors that were given as a definition
193
193
  * @param scene
194
194
  */
195
- getSceneInstance(scene: string): Scene | undefined;
195
+ getSceneInstance(scene: string): Scene | null;
196
196
  /**
197
197
  * Triggers scene loading if has not already been loaded
198
198
  * @param scene