Server with query protocol

This commit is contained in:
2023-03-15 07:12:47 +01:00
parent 75824c306f
commit f1152cfb25
8 changed files with 348 additions and 0 deletions

15
sampy/client/player.py Normal file
View File

@@ -0,0 +1,15 @@
from ctypes import c_ubyte
class Player:
id: c_ubyte
username: str
score: int
ping: int
health: float
armor: float
# position: Vector3 # TODO
rotation: float
def __init__(self, username: str):
self.username = username