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 ConflictResolution, Language, ClientType
from houdini import Language
database = { database = {
'Address': 'localhost', 'Address': 'localhost',
@ -19,6 +18,13 @@ commands = {
'ConflictMode': ConflictResolution.Silent 'ConflictMode': ConflictResolution.Silent
} }
client_identifier = {
'LegacyVersionChk': 'legacy',
'VanillaVersionChk': 'vanilla',
'DefaultVersionChk': 152,
'DefaultClientVersion': ClientType.Vanilla
}
servers = { servers = {
'Login': { 'Login': {
'Address': '0.0.0.0', 'Address': '0.0.0.0',

View File

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