-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Добавлена возможность указывать причину дисконекта с сервера - Добавлена возможность поставить колбек при диконекте(колбек должен принимать 1 параметр - `reason: str`) - Для сервера добавлены следующие методы `set_timeout`, `set_allow_registration`, `set_max_players` - Исправлена ошибка при вызове ошибки при диконекте на винде (иди нахуй винда, я ебал тебя)
- Loading branch information
1 parent
d1a7fa5
commit 990e9ee
Showing
7 changed files
with
96 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .cl_unit import ClUnit | ||
from .response_code import ResponseCode | ||
from .server_db import ServerDB | ||
from .states import ClientState | ||
|
||
__all__ = ["ClUnit", "ResponseCode", "ServerDB"] | ||
__all__ = ["ClUnit", "ResponseCode", "ServerDB", "ClientState"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class ClientState: | ||
DISCONNECTED: int = 0b001 | ||
CONNECTED: int = 0b010 | ||
AUTHORIZED: int = 0b100 |