chore: remove concept

This commit is contained in:
2025-05-06 14:23:53 +02:00
parent 24c39d23d6
commit 913c82994a
7 changed files with 25 additions and 105 deletions
+8 -8
View File
@@ -1,9 +1,9 @@
import { GameResponseDTO } from "./dto/gameresponse.dto";
import { PlayerResponseDTO } from "./dto/playerresponse.dto";
import type { ConceptEvent } from "./events";
import { GameResponseDTO } from './dto/gameresponse.dto';
import { PlayerResponseDTO } from './dto/playerresponse.dto';
import type { ConceptEvent } from './events';
export class LobbyCreateEvent implements ConceptEvent {
type = "create";
type = 'create';
game: GameResponseDTO;
constructor(game: GameResponseDTO) {
this.game = new GameResponseDTO(game);
@@ -11,19 +11,19 @@ export class LobbyCreateEvent implements ConceptEvent {
}
export class LobbyStartEvent implements ConceptEvent {
type = "start";
type = 'start';
constructor(public game: GameResponseDTO) {
this.game = new GameResponseDTO(game);
}
}
export class LobbyDeleteEvent implements ConceptEvent {
type = "delete";
type = 'delete';
constructor(public id: number) {}
}
export class LobbyJoinEvent implements ConceptEvent {
type = "joingame";
type = 'joingame';
constructor(
public player: PlayerResponseDTO,
public game: GameResponseDTO,
@@ -34,7 +34,7 @@ export class LobbyJoinEvent implements ConceptEvent {
}
export class LobbyLeaveEvent implements ConceptEvent {
type = "leavegame";
type = 'leavegame';
gameId?: number;
constructor(
public player: PlayerResponseDTO,