This commit is contained in:
2025-08-25 23:56:13 +08:00
parent 8c3be0a5bb
commit e0665aae01
15 changed files with 211 additions and 105 deletions

View File

@@ -1,6 +1,7 @@
using Fantasy;
using Fantasy.Async;
using Fantasy.Network;
using Fantasy.Platform.Net;
using NB.Chat;
using NB.Game;
@@ -67,6 +68,11 @@ public static class GateLoginHelper
routeComponent.AddAddress(RouteType.SocialRoute, chatRouteId);
gateUnit.ChatSceneRouteId = sceneRouteId;
Log.Info($"连接聊天服成功gameRouteId:{gameRouteId}");
var gameSceneConfigs = SceneConfigData.Instance.GetSceneBySceneType(SceneType.Map);
var mapSceneConfig = gameSceneConfigs.First();
routeComponent.AddAddress(RouteType.MapRoute, mapSceneConfig.RouteId);
return ErrorCode.Successful;
}