This commit is contained in:
syuilo 2024-01-13 12:01:18 +09:00
parent 7b0f5b50fc
commit 5503ad9d1a
2 changed files with 0 additions and 4 deletions

View File

@ -671,7 +671,6 @@ function replay() {
seed: seed, seed: seed,
gameMode: props.gameMode, gameMode: props.gameMode,
getMonoRenderOptions, getMonoRenderOptions,
replaying: true,
}); });
attachGameEvents(); attachGameEvents();
os.promiseDialog(loadMonoTextures(), async () => { os.promiseDialog(loadMonoTextures(), async () => {

View File

@ -308,7 +308,6 @@ export class DropAndFusionGame extends EventEmitter<{
private gameMode: 'normal' | 'yen' | 'square'; private gameMode: 'normal' | 'yen' | 'square';
private rng: () => number; private rng: () => number;
private logs: Log[] = []; private logs: Log[] = [];
private replaying = false;
/** /**
* *
@ -364,7 +363,6 @@ export class DropAndFusionGame extends EventEmitter<{
constructor(env: { constructor(env: {
seed: string; seed: string;
gameMode: DropAndFusionGame['gameMode']; gameMode: DropAndFusionGame['gameMode'];
replaying?: boolean;
getMonoRenderOptions?: (mono: Mono) => Partial<Matter.IBodyRenderOptions>; getMonoRenderOptions?: (mono: Mono) => Partial<Matter.IBodyRenderOptions>;
}) { }) {
super(); super();
@ -373,7 +371,6 @@ export class DropAndFusionGame extends EventEmitter<{
this.tick = this.tick.bind(this); this.tick = this.tick.bind(this);
//#endregion //#endregion
this.replaying = !!env.replaying;
this.gameMode = env.gameMode; this.gameMode = env.gameMode;
this.getMonoRenderOptions = env.getMonoRenderOptions ?? null; this.getMonoRenderOptions = env.getMonoRenderOptions ?? null;
this.rng = seedrandom(env.seed); this.rng = seedrandom(env.seed);