2
0

server.py 418 B

123456789101112131415161718
  1. # all imports needed by the engine itself
  2. from direct.showbase.ShowBase import ShowBase
  3. # import our own repositories
  4. from ServerRepository import GameServerRepository
  5. from AIRepository import AIRepository
  6. # initialize the engine
  7. base = ShowBase(windowType='none')
  8. # instantiate the server
  9. GameServerRepository()
  10. # The AI Repository to manage server side (AI) clients
  11. AIRepository()
  12. # start the server
  13. base.run()