reversi 💮 💯
This commit is contained in:
parent
03f20599ba
commit
1ef66c962a
48 changed files with 197 additions and 197 deletions
31
src/client/app/common/scripts/streaming/reversi.ts
Normal file
31
src/client/app/common/scripts/streaming/reversi.ts
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import StreamManager from './stream-manager';
|
||||
import Stream from './stream';
|
||||
import MiOS from '../../../mios';
|
||||
|
||||
export class ReversiStream extends Stream {
|
||||
constructor(os: MiOS, me) {
|
||||
super(os, 'reversi', {
|
||||
i: me.token
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export class ReversiStreamManager extends StreamManager<ReversiStream> {
|
||||
private me;
|
||||
private os: MiOS;
|
||||
|
||||
constructor(os: MiOS, me) {
|
||||
super();
|
||||
|
||||
this.me = me;
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
public getConnection() {
|
||||
if (this.connection == null) {
|
||||
this.connection = new ReversiStream(this.os, this.me);
|
||||
}
|
||||
|
||||
return this.connection;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue