-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.py
45 lines (32 loc) · 1.24 KB
/
server.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
#Dedicated Server - Main
#import algotest
from engine import shared, debug
shared.wd = "./"
shared.side = "Server"
from engine.Networking import sh_netObject, TwCLI
from engine.Networking.server import server
from engine.World import sv_map, steering, pathfinding
from engine.Game import gamemanager
shared.logInit("server")
shared.DPrint("Main",1,"Initializing Modules...")
shared.DPrint("Main",1,"Initializing Networked ObjectManager...")
sh_netObject.ObjectManager()
shared.DPrint("Main",1,"Initializing Server Service...")
shared.Service=server.Service()
shared.DPrint("Main",1,"Initializing UnitManager...")
server.UnitManager()
shared.DPrint("Main",1,"Initializing PlayerManager...")
server.PlayerManager()
shared.DPrint("Main",1,"Initializing Console...")
cliFactory=TwCLI.CLIFactory()
shared.DPrint("Main",1,"Initializing Pathfinder and Steering...")
shared.Pathfinder = pathfinding
shared.VehicleManager = steering.VehicleManager()
shared.DPrint("Main",1,"Initializing MapLoader...")
shared.MapLoader = sv_map.MapLoader()
shared.Map = shared.MapLoader.Load("tri6.map")
shared.Map.Setup()
shared.DPrint("Main",1,"Initializing Gamemanager")
shared.Gamemanager = gamemanager.sv_Gamemanager()
shared.DPrint("Main",1,"Starting Server...")
server.Startup()