diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-17 08:10:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-17 08:10:54 +0900 |
| commit | 1ef66c962a1cea81dee4f5db32cd011feac7de44 (patch) | |
| tree | 006945b7ae9d437cebb0fabc5eb5a849cff518c5 /src/client/app/common/scripts/streaming | |
| parent | Add missing semicolon (diff) | |
| download | sharkey-1ef66c962a1cea81dee4f5db32cd011feac7de44.tar.gz sharkey-1ef66c962a1cea81dee4f5db32cd011feac7de44.tar.bz2 sharkey-1ef66c962a1cea81dee4f5db32cd011feac7de44.zip | |
reversi :white_flower: :100:
Diffstat (limited to 'src/client/app/common/scripts/streaming')
| -rw-r--r-- | src/client/app/common/scripts/streaming/reversi-game.ts (renamed from src/client/app/common/scripts/streaming/othello-game.ts) | 4 | ||||
| -rw-r--r-- | src/client/app/common/scripts/streaming/reversi.ts (renamed from src/client/app/common/scripts/streaming/othello.ts) | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/client/app/common/scripts/streaming/othello-game.ts b/src/client/app/common/scripts/streaming/reversi-game.ts index 9e36f647bb..5638b3013f 100644 --- a/src/client/app/common/scripts/streaming/othello-game.ts +++ b/src/client/app/common/scripts/streaming/reversi-game.ts @@ -1,9 +1,9 @@ import Stream from './stream'; import MiOS from '../../../mios'; -export class OthelloGameStream extends Stream { +export class ReversiGameStream extends Stream { constructor(os: MiOS, me, game) { - super(os, 'othello-game', { + super(os, 'reversi-game', { i: me ? me.token : null, game: game.id }); diff --git a/src/client/app/common/scripts/streaming/othello.ts b/src/client/app/common/scripts/streaming/reversi.ts index 8f4f217e39..2e4395f0f1 100644 --- a/src/client/app/common/scripts/streaming/othello.ts +++ b/src/client/app/common/scripts/streaming/reversi.ts @@ -2,15 +2,15 @@ import StreamManager from './stream-manager'; import Stream from './stream'; import MiOS from '../../../mios'; -export class OthelloStream extends Stream { +export class ReversiStream extends Stream { constructor(os: MiOS, me) { - super(os, 'othello', { + super(os, 'reversi', { i: me.token }); } } -export class OthelloStreamManager extends StreamManager<OthelloStream> { +export class ReversiStreamManager extends StreamManager<ReversiStream> { private me; private os: MiOS; @@ -23,7 +23,7 @@ export class OthelloStreamManager extends StreamManager<OthelloStream> { public getConnection() { if (this.connection == null) { - this.connection = new OthelloStream(this.os, this.me); + this.connection = new ReversiStream(this.os, this.me); } return this.connection; |