chore : eslint

This commit is contained in:
2025-01-13 22:33:38 +01:00
parent a99853f417
commit 24c39d23d6
5 changed files with 57 additions and 51 deletions
+13 -12
View File
@@ -1,28 +1,29 @@
import { GameResponseDTO } from './dto/gameresponse.dto';
import { PlayerResponseDTO } from './dto/playerresponse.dto';
import { GameResponseDTO } from "./dto/gameresponse.dto";
import { PlayerResponseDTO } from "./dto/playerresponse.dto";
import type { ConceptEvent } from "./events";
export class LobbyCreateEvent {
type = 'create';
export class LobbyCreateEvent implements ConceptEvent {
type = "create";
game: GameResponseDTO;
constructor(game: GameResponseDTO) {
this.game = new GameResponseDTO(game);
}
}
export class LobbyStartEvent {
type = 'start';
export class LobbyStartEvent implements ConceptEvent {
type = "start";
constructor(public game: GameResponseDTO) {
this.game = new GameResponseDTO(game);
}
}
export class LobbyDeleteEvent {
type = 'delete';
export class LobbyDeleteEvent implements ConceptEvent {
type = "delete";
constructor(public id: number) {}
}
export class LobbyJoinEvent {
type = 'joingame';
export class LobbyJoinEvent implements ConceptEvent {
type = "joingame";
constructor(
public player: PlayerResponseDTO,
public game: GameResponseDTO,
@@ -32,8 +33,8 @@ export class LobbyJoinEvent {
}
}
export class LobbyLeaveEvent {
type = 'leavegame';
export class LobbyLeaveEvent implements ConceptEvent {
type = "leavegame";
gameId?: number;
constructor(
public player: PlayerResponseDTO,