Add backend
This commit is contained in:
parent
4ad60813c9
commit
0f0a1eaf67
19 changed files with 355 additions and 45 deletions
9
backend/src/players/player.ts
Normal file
9
backend/src/players/player.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Socket } from 'dgram';
|
||||
|
||||
export class Player {
|
||||
constructor(private readonly socket: SocketIO.Socket) {}
|
||||
|
||||
public get socketId(): string {
|
||||
return this.socket.id;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue