升级框架

This commit is contained in:
2026-01-18 16:37:46 +08:00
parent 917d82d3e8
commit 58911b2ef4
156 changed files with 6485 additions and 3410 deletions

View File

@@ -1,4 +1,5 @@
using Fantasy;
using System.Collections.Generic;
using Fantasy;
using Fantasy.Async;
using Fantasy.Entitas.Interface;
using Fantasy.Network;
@@ -72,9 +73,9 @@ public static class GateUnitSystem
sceneConfig = SceneConfigHelper.GetConfigByRouteType(routeType);
}
var gameRouteId = sceneConfig.RouteId;
var gameRouteId = sceneConfig.Address;
var gameResponse = (G2Common_EnterResponse)await self.Scene.NetworkMessagingComponent.CallInnerRoute(
var gameResponse = (G2Common_EnterResponse)await self.Scene.NetworkMessagingComponent.Call(
gameRouteId, new G2Common_EnterRequest()
{
AccountId = self.AccountID,
@@ -115,11 +116,11 @@ public static class GateUnitSystem
public static async FTask<uint> Offline(this GateUnit self, long sessionId, int routeType)
{
var sceneConfig = SceneConfigHelper.GetConfigByRouteType(routeType);
var sceneRouteId = sceneConfig.RouteId;
var sceneRouteId = sceneConfig.Address;
if (sceneRouteId < 1) return ErrorCode.Successful;
for (int i = 0; i < 10; i++)
{
var gameResponse = (Common2G_ExitResponse)await self.Scene.NetworkMessagingComponent.CallInnerRoute(
var gameResponse = (Common2G_ExitResponse)await self.Scene.NetworkMessagingComponent.Call(
sceneRouteId, new G2Common_ExitRequest()
{
AccountId = self.AccountID,