server reconciliation OK (a little rubberbanding)
This commit is contained in:
@@ -6,12 +6,12 @@ import { GameSession } from "./GameSession.js";
|
||||
class Client {
|
||||
socket: WebSocket;
|
||||
id: string; // Pas indispensable si "socket" a une copie de "id"
|
||||
isAlive: boolean;
|
||||
lastInputId: number = 0;
|
||||
isAlive: boolean = true;
|
||||
gameSession: GameSession;
|
||||
constructor(socket: WebSocket, id: string) {
|
||||
this.socket = socket;
|
||||
this.id = id;
|
||||
this.isAlive = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user