mani-game-engine 1.0.0-pre.73 → 1.0.0-pre.74

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.
package/lib/entity.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import { GameEngine } from './gameEngine';
1
2
  import { Signal } from 'mani-signal';
2
3
  import { Class } from './types';
3
4
  import { ID } from './injector';
4
5
  export declare class Entity {
5
6
  readonly children: Set<Entity>;
6
- private gameEngine?;
7
+ readonly gameEngine?: GameEngine;
7
8
  get isAdded(): boolean;
8
9
  private _parent?;
9
10
  readonly parentChanged: Signal<unknown>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mani-game-engine",
3
3
  "author": "Jan Mankopf",
4
- "version": "1.0.0-pre.73",
4
+ "version": "1.0.0-pre.74",
5
5
  "description": "entity component system game engine for typescript",
6
6
  "private": false,
7
7
  "scripts": {
package/src/entity.ts CHANGED
@@ -10,7 +10,7 @@ let idCounter = 0;
10
10
  export class Entity {
11
11
 
12
12
  readonly children = new Set<Entity>();
13
- private gameEngine?: GameEngine;
13
+ readonly gameEngine?: GameEngine;
14
14
 
15
15
  get isAdded() {
16
16
  return !!this.gameEngine;