fixed missing serverWorld issue and added status to login response

This commit is contained in:
2024-01-15 10:43:56 +01:00
parent 1a9f49f5e9
commit 69881973a4
12 changed files with 33 additions and 4 deletions

View File

@ -1,12 +1,11 @@
import json
import pygame
from Classes.System.Network.TCPClient import TCPClient
from Classes.Game.World import World
from Classes.Game.Player import Player
# event the client sends to let the server know it logged in
def Login(tcpClient:TCPClient):
def Login(tcpClient):
payload = {
"event":"login",
"username": "player",