-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42d1909
commit d63061a
Showing
3 changed files
with
108 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .status_pre_17 import StatusPre17 |
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,23 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class StatusPre17: | ||
""" | ||
Represents the status of a game for versions prior to 1.7. | ||
""" | ||
|
||
protocol: str | ||
"""The protocol of the game.""" | ||
|
||
version: str | ||
"""The version of the game.""" | ||
|
||
motd: str | ||
"""The message of the day.""" | ||
|
||
num_players: int | ||
"""The number of players in the game.""" | ||
|
||
max_players: int | ||
"""The maximum number of players allowed in the game.""" |