forked from xan1242/NFSC_MasterServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataClasses.py
64 lines (47 loc) · 1.38 KB
/
DataClasses.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
class Client:
userID = 0
personaID = 0
nuid = ""
personaName = ""
accountSessionKey = ""
personaSessionKey = ""
plasmaPacketID = 0
playerID = 0 # PID on server
filteredServers = 0
locale = ""
ipAddr = None
networkInt = None
theaterInt = None
IsUp = False
ping_timer = None
memcheck_timer = None
# NFS modification - NFSC doesn't know the difference between a PlasmaServer and PlasmaClient...
serverData = None
class Server:
userID = 0
personaID = 0
nuid = ""
personaName = ""
accountSessionKey = ""
personaSessionKey = ""
serverData = None
plasmaPacketID = 0
startedUBRAs = 0
clientVersion = ""
gameID = 0
joiningPlayers = 0
activePlayers = 0
newPlayerID = 0
connectedPlayers = []
validServers = {'[email protected]': {'password': 'Che6rEPA', 'id': 1}, # Server NUID {'password': serverPassword, 'id': userID}
'[email protected]': {'password': 'zAmeH7bR', 'id': 2},
'[email protected]': {'password': 'B8ApRavE', 'id': 3}}
validPersonas = {"nfs.server.p": 1, # PersonaName: PersonaID
"bfbc.server.ps": 2,
"bfbc.server.xe": 3}
ipAddr = None
networkInt = None
theaterInt = None
IsUp = False
ping_timer = None
memcheck_timer = None