コード例 #1
0
 private void StartWebServer()
 {
     PrepareBindings();
     JavityWebSocketServer.GetInstance().Create(_port);
     JavityWebSocketServer.GetInstance().AddWsService <PlayerWsService>("/Javity");
     JavityWebSocketServer.GetInstance().Start();
 }
コード例 #2
0
        public void Run(IMapLoader mapLoader = null)
        {
            _eventBus.Register(this);
            _eventBus.Register(JavityWebSocketServer.GetInstance());

            mapLoader ??= LoadClassicMap();
            GenerateMap(mapLoader);
            StartWebServer();
            RunGame();
        }