-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds Estranged: Act I * Moves Estranged: Act I to the experimental section. * Estranged Act 1: Mark as hidden --------- Co-authored-by: Jasper St. Pierre <[email protected]>
- Loading branch information
1 parent
9d84c00
commit 6b56671
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
import { GfxDevice } from "../gfx/platform/GfxPlatform.js"; | ||
import { SceneContext, SceneDesc, SceneGroup } from "../SceneBase.js"; | ||
import { SourceFileSystem, SourceLoadContext } from "./Main.js"; | ||
import { createScene } from "./Scenes.js"; | ||
|
||
const pathBase = `EstrangedActI`; | ||
|
||
class EstrangedActISceneDesc implements SceneDesc { | ||
constructor(public id: string, public name: string = id) { | ||
} | ||
|
||
public async createScene(device: GfxDevice, context: SceneContext) { | ||
const filesystem = await context.dataShare.ensureObject(`${pathBase}/SourceFileSystem`, async () => { | ||
const filesystem = new SourceFileSystem(context.dataFetcher); | ||
await Promise.all([ | ||
filesystem.createVPKMount(`EstrangedActI/estranged_pack`), | ||
]); | ||
return filesystem; | ||
}); | ||
|
||
const loadContext = new SourceLoadContext(filesystem); | ||
return createScene(context, loadContext, this.id, `${pathBase}/maps/${this.id}.bsp`); | ||
} | ||
} | ||
|
||
const id = 'EstrangedActI'; | ||
const name = 'Estranged: Act I'; | ||
const sceneDescs = [ | ||
new EstrangedActISceneDesc("menu_loading"), | ||
new EstrangedActISceneDesc("sp01thebeginning"), | ||
new EstrangedActISceneDesc("sp02theforest"), | ||
new EstrangedActISceneDesc("sp04thetunnel"), | ||
new EstrangedActISceneDesc("sp05thesewers"), | ||
new EstrangedActISceneDesc("sp07theoutleta"), | ||
new EstrangedActISceneDesc("sp07theoutletb"), | ||
new EstrangedActISceneDesc("sp08theincline"), | ||
new EstrangedActISceneDesc("sp09thebase"), | ||
new EstrangedActISceneDesc("sp10thewarehouse"), | ||
]; | ||
|
||
export const sceneGroup: SceneGroup = { id, name, sceneDescs, hidden: true }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters