From d6021ddc2d7fcefb5ab6b8ab1b77622cdf2f916d Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Sat, 22 Jul 2023 21:13:57 +0300 Subject: [PATCH] Add pid (PlayerId) --- src/core/Client.py | 4 ++++ src/core/Client.pyi | 1 + 2 files changed, 5 insertions(+) diff --git a/src/core/Client.py b/src/core/Client.py index b09ea6e..f55867a 100644 --- a/src/core/Client.py +++ b/src/core/Client.py @@ -60,6 +60,10 @@ class Client: def cid(self): return self._cid + @property + def pid(self): + return self._cid + @property def key(self): return self._key diff --git a/src/core/Client.pyi b/src/core/Client.pyi index eda44b1..2f0475c 100644 --- a/src/core/Client.pyi +++ b/src/core/Client.pyi @@ -46,6 +46,7 @@ class Client: def addr(self) -> Tuple[str, int]: ... @property def cid(self) -> int: ... + def pid(self) -> int: ... @property def key(self) -> str: ... @property