theoretically reworked packet structure for gamestart event + fixed client issue flooding the server with packets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user