地图
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user