chore : remove class-transformer
This commit is contained in:
+9
-9
@@ -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,
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user