add first card list

This commit is contained in:
2024-03-29 11:08:12 +01:00
parent 3e99ce4357
commit b78a09f911
7 changed files with 334 additions and 17 deletions
+10
View File
@@ -58,6 +58,15 @@ class ClientController:
async def send_error(self, error: str):
await self.send(Message(type="error", data_type="error", data=error))
async def send_announce_dict(self, notification_type: str, data: dict):
await self.send(
Message(
type=notification_type,
data_type="object",
data=data,
)
)
@vibe_check(Message)
async def game_context(self, message: Message):
"""Handles messages when the client is logged in"""
@@ -90,6 +99,7 @@ class ClientController:
return
self.player = player
self.player.team.listeners.append(self.send_announce_dict)
self.on_message = self.game_context
print("user logged in : " + username)