core: split: game and pong

This commit is contained in:
2024-04-05 17:47:17 +02:00
parent c49e721e5a
commit f6f59f8ead
34 changed files with 965 additions and 784 deletions

View File

@ -17,7 +17,15 @@ if TYPE_CHECKING:
game_manager: GameManager = GameManager()
class GameWebSocket(WebsocketConsumer):
class TicTacToeWebSocket(WebsocketConsumer):
def connect(self):
return super().connect()
def receive(self, text_data=None, bytes_data=None):
return super().receive(text_data, bytes_data)
class PongWebSocket(WebsocketConsumer):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)