Feat : add messages

This commit is contained in:
2024-12-30 17:41:17 +01:00
parent 63f8cd45af
commit 813d942638
4 changed files with 27 additions and 4 deletions
+9 -1
View File
@@ -20,8 +20,16 @@ export class GameJoinEvent {
export class GameLeaveEvent {
type = 'leavegame';
gameId?: number;
constructor(public player: PlayerResponseDTO) {
this.player = new PlayerResponseDTO(player);
}
}
export class GameMessageEvent {
type = 'message';
constructor(
public gameId: number,
public authorId: number,
public message: string,
) {}
}