فهرست منبع

ActorLocationSenderComponentSystem (#428)

添加疑似缺少的代码

RouterComponentSystem

修正AwakeSystem类命名不规范问题

NumericComponentSystem

int 改 long 因为字典里存储的value为long型

Co-authored-by: anjie <jie.an@car2data.cn>
anjiev5 2 سال پیش
والد
کامیت
9ff6960506

+ 1 - 0
Unity/Assets/Scripts/Codes/Hotfix/Server/Module/ActorLocation/ActorLocationSenderComponentSystem.cs

@@ -158,6 +158,7 @@ namespace ET.Server
 
                 if (actorLocationSender.ActorId == 0)
                 {
+                    actorLocationSender.Error = ErrorCore.ERR_NotFoundActor;
                     return ActorHelper.CreateResponse(iActorRequest, ErrorCore.ERR_NotFoundActor);
                 }
                 IActorResponse response = await ActorMessageSenderComponent.Instance.Call(actorLocationSender.ActorId, rpcId, iActorRequest, false);

+ 1 - 1
Unity/Assets/Scripts/Codes/Hotfix/Server/Module/Router/RouterComponentSystem.cs

@@ -10,7 +10,7 @@ namespace ET.Server
     public static class RouterComponentSystem
     {
         [ObjectSystem]
-        public class RandomGeneratorponentAwakeSystem: AwakeSystem<RouterComponent, IPEndPoint, string>
+        public class RouterComponentAwakeSystem: AwakeSystem<RouterComponent, IPEndPoint, string>
         {
             protected override void Awake(RouterComponent self, IPEndPoint outerAddress, string innerIP)
             {

+ 1 - 1
Unity/Assets/Scripts/Codes/Model/Share/Module/Numeric/NumericComponent.cs

@@ -24,7 +24,7 @@ namespace ET
 
         public static void Set(this NumericComponent self, int nt, float value)
         {
-            self[nt] = (int)(value * 10000);
+            self[nt] = (long)(value * 10000);
         }
 
         public static void Set(this NumericComponent self, int nt, int value)