theoretically reworked packet structure for gamestart event + fixed client issue flooding the server with packets

This commit is contained in:
2024-01-15 10:26:14 +01:00
parent afa2d779a1
commit 1a9f49f5e9
30 changed files with 205 additions and 34 deletions

View File

@@ -7,10 +7,11 @@ class Player:
__name:str
__handCards:pygame.sprite.Group
def __init__(self, hp:int, mana:int, name:str):
def __init__(self, hp:int, mana:int, name:str, id:int):
self.__hp = hp
self.__mana = mana
self.__name = name
self.__id = id
def setID(self, id:int):
self.__id = id