Skip to content

Commit

Permalink
spectate
Browse files Browse the repository at this point in the history
  • Loading branch information
tailuge committed Jan 9, 2025
1 parent 2f79bd0 commit fdef2dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/diagram.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "jest --config ./test/jest.config.js --verbose",
"coverage": "jest --config ./test/jest.config.js --coverage",
"dev": "webpack",
"prettify": "prettier --cache true --write --trailing-comma es5 --no-semi {src,test}/**/*.[jt]s dist/**/*.{css,html} *.[jt]s *.json dist/lobby/*",
"prettify": "prettier --cache true --write --trailing-comma es5 --no-semi {src,test}/**/*.[jt]s dist/**/*.{css,html} *.[jt]s *.json",
"markdownlint": "npx markdownlint-cli2 README.md --fix",
"serve": "webpack serve",
"deps": "npx yarn-check --skip-unused",
Expand Down
2 changes: 2 additions & 0 deletions src/controller/spectate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export class Spectate extends ControllerBase {
override handleHit(event: HitEvent) {
console.log("Spectate Hit")
this.container.table.updateFromSerialised(event.tablejson)
this.container.table.outcome = []
this.container.table.hit()
return this
}

Expand Down

0 comments on commit fdef2dd

Please sign in to comment.