open_toontown_panda3d/samples/networking/03-distributed-node/server.py

19 lines
418 B
Python

# all imports needed by the engine itself
from direct.showbase.ShowBase import ShowBase
# import our own repositories
from ServerRepository import GameServerRepository
from AIRepository import AIRepository
# initialize the engine
base = ShowBase(windowType='none')
# instantiate the server
GameServerRepository()
# The AI Repository to manage server side (AI) clients
AIRepository()
# start the server
base.run()