0
0
Fork 0

Create Player object

This commit is contained in:
Oliver-Akins 2020-12-24 21:50:48 -07:00
parent eee45018c5
commit e2ba845299

View file

@ -0,0 +1,13 @@
import { Socket } from "socket.io";
export class Player {
readonly name: string;
public socket: Socket;
readonly isHost: boolean;
constructor(name: string, socket: Socket, isHost=false) {
this.name = name;
this.socket = socket;
this.isHost = isHost;
};
};