-
Florian Schröder authored
All instances of 'overcooked_simulator' have been replaced with 'cooperative_cuisine'. This includes changes in file paths, imports, and script names. The necessary adjustments to reflect this rename have also been made in the documentation, setup files, test scripts, and CI/CD configuration.
Florian Schröder authoredAll instances of 'overcooked_simulator' have been replaced with 'cooperative_cuisine'. This includes changes in file paths, imports, and script names. The necessary adjustments to reflect this rename have also been made in the documentation, setup files, test scripts, and CI/CD configuration.
server_results.py 645 B
"""Type hint classes for the returned data for the post calls."""
from __future__ import annotations
from typing import TYPE_CHECKING
from typing_extensions import TypedDict, Literal
if TYPE_CHECKING:
from cooperative_cuisine.game_server import PlayerRequestType
class PlayerInfo(TypedDict):
client_id: str
player_hash: str
player_id: str
class CreateEnvResult(TypedDict):
env_id: str
player_info: dict[str, PlayerInfo]
recipe_graphs: list[dict]
class PlayerRequestResult(TypedDict):
request_type: PlayerRequestType | None
status: Literal[200] | Literal[400]
msg: str
player_hash: str | None