Tweak frontend and game logic
This commit is contained in:
@ -22,6 +22,7 @@ class Player:
|
||||
)
|
||||
active: bool = True
|
||||
can_be_deactivated: bool = True
|
||||
reached_destination: bool = False
|
||||
|
||||
def reset_timeout(self) -> None:
|
||||
self.last_seen = datetime.datetime.now()
|
||||
|
||||
@ -15,9 +15,12 @@ class LayerDto(BaseModel):
|
||||
name: str
|
||||
objects: list[LayerObjectDto]
|
||||
|
||||
class GameStatePlayerDto(PlayerDto):
|
||||
reached_destination: bool
|
||||
|
||||
|
||||
class GameStateDto(BaseModel):
|
||||
board: BoardDto
|
||||
destination: DestinationDto
|
||||
players: list[PlayerDto]
|
||||
players: list[GameStatePlayerDto]
|
||||
layers: list[LayerDto]
|
||||
|
||||
Reference in New Issue
Block a user