Template
working on words
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { GameResponseDTO } from './dto/gameresponse.dto';
|
||||
import { PlayerResponseDTO } from './dto/playerresponse.dto';
|
||||
|
||||
export class GameCreateEvent extends GameResponseDTO {
|
||||
type: 'create';
|
||||
}
|
||||
|
||||
export class GameDeleteEvent {
|
||||
type: 'delete';
|
||||
constructor(public id?: number) {}
|
||||
}
|
||||
export class GameJoinEvent {
|
||||
type: 'joingame';
|
||||
gameId: number;
|
||||
constructor(
|
||||
public player: PlayerResponseDTO,
|
||||
game?: Partial<GameResponseDTO>,
|
||||
) {
|
||||
this.gameId = game.id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user