Endgame WS messages & docs
This commit is contained in:
@ -6,13 +6,7 @@ from typing import Optional, TypeVar
|
||||
from pydantic import Field
|
||||
from pydantic.generics import GenericModel
|
||||
|
||||
from hopper.api.dto import (
|
||||
BaseModel,
|
||||
BoardDto,
|
||||
DestinationDto,
|
||||
PlayerDto,
|
||||
PositionDto,
|
||||
)
|
||||
from hopper.api.dto import BaseModel, BoardDto, DestinationDto, PlayerDto, PositionDto
|
||||
from hopper.enums import ObjectType
|
||||
|
||||
|
||||
@ -65,6 +59,10 @@ class WSProductSelectionDoneMessage(WSMessage):
|
||||
message: str = "product_selection_done"
|
||||
|
||||
|
||||
class WSProductSelectionTimeoutMessage(WSMessage):
|
||||
message: str = "product_selection_timeout"
|
||||
|
||||
|
||||
class WSPlayerReachedDestinationMessage(WSMessage):
|
||||
message: str = "player_reached_destination"
|
||||
data: PlayerReachedDestinationDto
|
||||
|
||||
Reference in New Issue
Block a user