瀏覽代碼

优化玩家操作推送的操作类型

johnclot69 1 月之前
父節點
當前提交
be2af6873b
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      DotNet/Hotfix/Scenes/Game/Room/HGHHComponentSystem.cs

+ 7 - 7
DotNet/Hotfix/Scenes/Game/Room/HGHHComponentSystem.cs

@@ -677,7 +677,7 @@ namespace ET.Server
             {
                 RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                 info.Time = 30;
-                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 1});
+                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.CHI});
             }
         }
 
@@ -758,7 +758,7 @@ namespace ET.Server
             {
                 RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                 info.Time = 30;
-                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 2});
+                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.PENG});
             }
         }
 
@@ -950,7 +950,7 @@ namespace ET.Server
             {
                 RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                 info.Time = 30;
-                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 3});
+                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.GANG});
             }
         }
 
@@ -980,7 +980,7 @@ namespace ET.Server
                     {
                         RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                         info.Time = 30;
-                        MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 4});
+                        MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.HU});
                     }
                     
                     // 自摸胡牌结算
@@ -1040,7 +1040,7 @@ namespace ET.Server
             {
                 RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                 info.Time = 30;
-                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 4});
+                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.HU});
             }
         }
 
@@ -1172,7 +1172,7 @@ namespace ET.Server
                             {
                                 RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                                 info.Time = 30;
-                                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 5});
+                                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.GUO});
                             }
                         }
                     }
@@ -1230,7 +1230,7 @@ namespace ET.Server
                             {
                                 RoomInfo info = ProtoHelper.RoomToProto(room, p, player);
                                 info.Time = 30;
-                                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = 5});
+                                MessageHelper.SendToClient(p, new G2C_HGHHOperationPush(){info = info, OpType = (int)OperationType.GUO});
                             }
                         }
                     }