Add configuration for future multi-client support

This commit is contained in:
Ben 2019-06-21 01:37:03 +01:00
parent cd34c3dbb7
commit 8b0ff4e944
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,4 @@
from houdini import ConflictResolution
from houdini import Language
from houdini import ConflictResolution, Language, ClientType
database = {
'Address': 'localhost',
@ -19,6 +18,13 @@ commands = {
'ConflictMode': ConflictResolution.Silent
}
client_identifier = {
'LegacyVersionChk': 'legacy',
'VanillaVersionChk': 'vanilla',
'DefaultVersionChk': 152,
'DefaultClientVersion': ClientType.Vanilla
}
servers = {
'Login': {
'Address': '0.0.0.0',

View File

@ -24,6 +24,11 @@ class Language(enum.IntEnum):
Ru = 64
class ClientType(enum.Enum):
Legacy = 'legacy'
Vanilla = 'vanilla'
class _AbstractManager(dict):
def __init__(self, server):
self.server = server