chore : remove class-transformer

This commit is contained in:
2024-12-29 23:47:41 +01:00
parent 49adbdec5b
commit e9d5d8d909
9 changed files with 48 additions and 56 deletions
+9 -9
View File
@@ -1,34 +1,34 @@
import { GameResponseDTO } from "./dto/gameresponse.dto";
import { PlayerResponseDTO } from "./dto/playerresponse.dto";
import { GameResponseDTO } from './dto/gameresponse.dto';
import { PlayerResponseDTO } from './dto/playerresponse.dto';
export class LobbyCreateEvent {
type = "create";
type = 'create';
constructor(public game: GameResponseDTO) {}
}
export class LobbyStartEvent {
type = "start";
type = 'start';
constructor(public game: GameResponseDTO) {}
}
export class LobbyDeleteEvent {
type = "delete";
type = 'delete';
constructor(public id: number) {}
}
export class LobbyJoinEvent {
type = "joingame";
type = 'joingame';
constructor(
public player: PlayerResponseDTO,
public game: GameResponseDTO
public game: GameResponseDTO,
) {}
}
export class LobbyLeaveEvent {
type = "leavegame";
type = 'leavegame';
gameId?: number;
constructor(
public player: PlayerResponseDTO,
public game: GameResponseDTO
public game: GameResponseDTO,
) {}
}