Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:45:01 +02:00
commit f4a01d6a69
11601 changed files with 4206660 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
namespace TSE {
export class Scene {
private _root: SimObject;
public constructor() {
this._root = new SimObject(0, "__ROOT__", this);
}
public get root(): SimObject { return this._root; }
public get isLoaded(): boolean { return this._root.isLoaded; }
public addObject(object: SimObject): void { this._root.addChild(object); }
public getObjectByName(name: string): SimObject { return this._root.getObjectByName(name); }
public load(): void { this._root.load(); }
public update(time: number): void { this._root.update(time); }
public render(shader: Shader): void { this._root.render(shader); }
}
}