24 lines
626 B
Python
24 lines
626 B
Python
from random import randint
|
|
|
|
class ServerConfig:
|
|
def __init__(self,
|
|
host: str, port: int,
|
|
hostname: str, password: str,
|
|
rcon_password: str,
|
|
max_players: int,
|
|
mode: str, language: str):
|
|
self.host = host
|
|
self.port = port
|
|
|
|
self.hostname = hostname
|
|
self.password = password
|
|
|
|
self.rcon_password = rcon_password
|
|
|
|
self.max_players = max_players
|
|
|
|
self.mode = mode
|
|
self.language = language
|
|
|
|
# Things the user should not be able to control (automated)
|
|
self.challenge_short = randint(0, 0xFFFF) |