Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement DiceSystem.clear
Browse files Browse the repository at this point in the history
Kruptein committed Aug 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c99f42d commit 54d3632
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/src/game/systems/dice/index.ts
Original file line number Diff line number Diff line change
@@ -3,14 +3,21 @@ import type { DeepReadonly } from "vue";

import { registerSystem } from "..";
import type { System } from "..";
import type { SystemClearReason } from "../models";

import { loadDiceEnv } from "./environment";
import { diceState } from "./state";

const { mutableReactive: $ } = diceState;

class DiceSystem implements System {
clear(): void {}
clear(reason: SystemClearReason): void {
$.result = undefined;
if (reason !== "full-loading") {
$.history = [];
$.loaded3d = false;
}
}

addToHistory(roll: RollResult<Part>, player: string, name?: string): string {
let rollString = "";

0 comments on commit 54d3632

Please sign in to comment.