domino-server/src/game/dto/PlayerDto.ts
2024-07-24 22:38:34 +02:00

25 lines
426 B
TypeScript

export interface TileDto {
id: string;
pips?: number[];
flipped: boolean;
revealed: boolean;
playerId: string | undefined;
}
export interface PlayerDto {
id: string;
name: string;
score?: number;
hand?: TileDto[];
teamedWith?: string;
ready: boolean;
isHuman: boolean;
}
export interface PlayerMoveDto {
id: string;
tile: TileDto
type: string | null;
playerId: string;
direction?: string;
}