diff --git a/server/src/objects/Player.ts b/server/src/objects/Player.ts new file mode 100644 index 0000000..cfc12aa --- /dev/null +++ b/server/src/objects/Player.ts @@ -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; + }; +}; \ No newline at end of file