working on words

This commit is contained in:
2024-12-29 12:24:32 +01:00
parent 856dfbd119
commit 4d22905ef9
8 changed files with 166 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { GameResponseDTO } from './dto/gameresponse.dto';
import { PlayerResponseDTO } from './dto/playerresponse.dto';
export class GameCreateEvent extends GameResponseDTO {
type: 'create';
}
export class GameDeleteEvent {
type: 'delete';
constructor(public id?: number) {}
}
export class GameJoinEvent {
type: 'joingame';
gameId: number;
constructor(
public player: PlayerResponseDTO,
game?: Partial<GameResponseDTO>,
) {
this.gameId = game.id;
}
}