-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Vice City Multiplayer Protocol
- Loading branch information
1 parent
f1ba980
commit 7b6664b
Showing
7 changed files
with
120 additions
and
41 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,2 @@ | ||
from .player import Player | ||
from .status import Status |
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,11 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class Player: | ||
""" | ||
Represents a player in the game. | ||
""" | ||
|
||
name: str | ||
"""The player's name.""" |
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,30 @@ | ||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class Status: | ||
""" | ||
Represents the status response from a server. | ||
""" | ||
|
||
version: str | ||
"""The version of the server.""" | ||
|
||
password: bool | ||
"""Indicates whether a password is required to connect to the server.""" | ||
|
||
num_players: int | ||
"""The number of players currently connected to the server.""" | ||
|
||
max_players: int | ||
"""The maximum number of players that can connect to the server.""" | ||
|
||
server_name: str | ||
"""The name of the server.""" | ||
|
||
game_type: str | ||
"""The type of game being played on the server.""" | ||
|
||
language: str | ||
"""The language of the server.""" |
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,9 +1,9 @@ | ||
{ | ||
"version": "04rel006", | ||
"password": 1, | ||
"numplayers": 16, | ||
"maxplayers": 30, | ||
"servername": "[0.4] Vice Paradise - Roleplay - OneVice Hosting", | ||
"gametype": "Roleplay EN/SPA", | ||
"num_players": 16, | ||
"max_players": 30, | ||
"server_name": "[0.4] Vice Paradise - Roleplay - OneVice Hosting", | ||
"game_type": "Roleplay EN/SPA", | ||
"language": "Vice City" | ||
} |