chore: remove concept
This commit is contained in:
+8
-8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user