Skip to content

Commit 7110be1

Browse files
committed
build
1 parent 2d49362 commit 7110be1

19 files changed

+75
-33
lines changed

build/sketchbook.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/types/characters/Character.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ export declare class Character extends THREE.Object3D implements IWorldEntity {
5353
charState: ICharacterState;
5454
behaviour: ICharacterAI;
5555
world: World;
56-
help1: THREE.AxesHelper;
57-
help2: THREE.AxesHelper;
58-
help3: THREE.AxesHelper;
5956
isRunningTowardsVehicle: boolean;
6057
targetSeat: VehicleSeat;
6158
private physicsEnabled;

build/types/core/InputManager.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export declare class InputManager {
1515
boundOnKeyDown: (evt: any) => void;
1616
boundOnKeyUp: (evt: any) => void;
1717
constructor(world: World, domElement: HTMLElement);
18-
update(timestep: number): void;
18+
update(timestep: number, unscaledTimeStep: number): void;
1919
setInputReceiver(receiver: IInputReceiver): void;
2020
setPointerLock(enabled: boolean): void;
2121
onPointerlockChange(event: MouseEvent): void;

build/types/core/LoadingManager.d.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
import { WelcomeScreen } from "./WelcomeScreen";
21
import { World } from './World';
2+
import { LoadingTrackerEntry } from './LoadingTrackerEntry';
33
export declare class LoadingManager {
4-
printProgress: boolean;
5-
welcomeScreen: WelcomeScreen;
64
private gltfLoader;
75
private loadingTracker;
86
private world;
7+
private progressBarSimulator;
8+
private firstLoad;
99
constructor(world: World);
1010
loadGLTF(path: string, onLoadingFinished: (gltf: any) => void): void;
11-
startLoading(path: string): void;
12-
doneLoading(path: string): void;
11+
addLoadingEntry(path: string): LoadingTrackerEntry;
12+
doneLoading(trackerEntry: LoadingTrackerEntry): void;
13+
update(timeStep: number): void;
14+
private getLoadingPercentage;
15+
private isLoadingDone;
1316
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export declare class LoadingTrackerEntry {
2+
path: string;
3+
progress: number;
4+
finished: boolean;
5+
constructor(path: string);
6+
}

build/types/core/World.d.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ import * as THREE from 'three';
22
import * as CANNON from 'cannon';
33
import { CameraOperator } from './CameraOperator';
44
import EffectComposer from '@johh/three-effectcomposer';
5-
import { default as CSM } from '../../lib/utils/three-csm.module.js';
5+
import { default as CSM } from 'three-csm';
66
import { Stats } from '../../lib/utils/Stats';
77
import { InputManager } from './InputManager';
88
import { Character } from '../characters/Character';
99
import { IWorldEntity } from '../interfaces/IWorldEntity';
1010
import { Sky } from '../entities/Sky';
1111
import { Path } from '../data/Path';
1212
import { LoadingManager } from './LoadingManager';
13-
import { WelcomeScreen } from "./WelcomeScreen";
13+
import { LoadingScreen } from '../ui/LoadingScreen';
1414
import { CannonDebugRenderer } from '../../lib/cannon/CannonDebugRenderer';
1515
import { Vehicle } from '../vehicles/Vehicle';
1616
import { Scenario } from '../data/Scenario';
17+
import { CustomConsole } from '../ui/CustomConsole';
1718
export declare class World {
1819
renderer: THREE.WebGLRenderer;
1920
camera: THREE.PerspectiveCamera;
@@ -37,16 +38,15 @@ export declare class World {
3738
timeScaleTarget: number;
3839
csm: CSM;
3940
loadingManager: LoadingManager;
40-
welcomeScreen: WelcomeScreen;
41+
loadingScreen: LoadingScreen;
42+
customConsole: CustomConsole;
4143
cannonDebugRenderer: CannonDebugRenderer;
4244
scenarios: Scenario[];
4345
characters: Character[];
4446
vehicles: Vehicle[];
45-
paths: {
46-
[id: string]: Path;
47-
};
47+
paths: Path[];
4848
constructor();
49-
update(timeStep: number): void;
49+
update(timeStep: number, unscaledTimeStep: number): void;
5050
updatePhysics(timeStep: number): void;
5151
isOutOfBounds(position: CANNON.Vec3): boolean;
5252
outOfBoundsRespawn(body: CANNON.Body, position?: CANNON.Vec3): void;
@@ -61,6 +61,8 @@ export declare class World {
6161
add(object: IWorldEntity): void;
6262
remove(object: IWorldEntity): void;
6363
loadScene(gltf: any): void;
64+
launchScenario(scenarioID: string): void;
65+
clearEntities(): void;
6466
scrollTheTimeScale(scrollAmount: number): void;
6567
updateControls(controls: any): void;
6668
private getGUI;

build/types/data/Path.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ export declare class Path {
33
nodes: {
44
[nodeName: string]: PathNode;
55
};
6+
private rootNode;
7+
constructor(root: THREE.Object3D);
68
addNode(child: any): void;
79
connectNodes(): void;
8-
firstNode(): PathNode;
910
}

build/types/data/PathNode.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export declare class PathNode {
55
path: Path;
66
nextNode: PathNode;
77
previousNode: PathNode;
8+
constructor(child: THREE.Object3D, path: Path);
89
}

build/types/data/Scenario.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import { World } from '../core/World';
22
export declare class Scenario {
3+
id: string;
4+
name: string;
35
spawnAlways: boolean;
46
default: boolean;
57
private rootNode;
68
private spawnPoints;
7-
constructor(root: THREE.Object3D);
8-
findSpawnPoints(): void;
9+
private invisible;
10+
private world;
11+
constructor(root: THREE.Object3D, world: World);
12+
createLaunchLink(): void;
913
launch(world: World): void;
1014
}

build/types/interfaces/ICharacterAI.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Character } from "../characters/Character";
1+
import { Character } from '../characters/Character';
22
export interface ICharacterAI {
33
character: Character;
44
update(timeStep: number): void;

0 commit comments

Comments
 (0)