private void StartWebServer() { PrepareBindings(); JavityWebSocketServer.GetInstance().Create(_port); JavityWebSocketServer.GetInstance().AddWsService <PlayerWsService>("/Javity"); JavityWebSocketServer.GetInstance().Start(); }
public void Run(IMapLoader mapLoader = null) { _eventBus.Register(this); _eventBus.Register(JavityWebSocketServer.GetInstance()); mapLoader ??= LoadClassicMap(); GenerateMap(mapLoader); StartWebServer(); RunGame(); }