Commit a57d3aa1 authored by mercury233's avatar mercury233

add TeammateSurrender

parent 6cfab698
Pipeline #27477 passed with stage
in 12 minutes and 29 seconds
...@@ -178,6 +178,9 @@ public static class TcpHelper ...@@ -178,6 +178,9 @@ public static class TcpHelper
case StocMessage.HsWatchChange: case StocMessage.HsWatchChange:
Program.I().room.StocMessage_HsWatchChange(r); Program.I().room.StocMessage_HsWatchChange(r);
break; break;
case StocMessage.TeammateSurrender:
Program.I().room.StocMessage_TeammateSurrender(r);
break;
} }
} }
catch (Exception e) catch (Exception e)
......
...@@ -339,6 +339,14 @@ public class Room : WindowServantSP ...@@ -339,6 +339,14 @@ public class Room : WindowServantSP
RMSshow_none(InterString.Get("请耐心等待双方玩家更换副卡组。")); RMSshow_none(InterString.Get("请耐心等待双方玩家更换副卡组。"));
} }
public void StocMessage_TeammateSurrender(BinaryReader r)
{
if(Program.I().ocgcore.surrended)
RMSshow_none(InterString.Get("已申请投降,请等待队友同意。"));
else
RMSshow_none(InterString.Get("队友申请投降。若您同意,请点击投降按钮。"));
}
public bool needSide; public bool needSide;
public bool joinWithReconnect; public bool joinWithReconnect;
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
Chat = 0x19, Chat = 0x19,
HsPlayerEnter = 0x20, HsPlayerEnter = 0x20,
HsPlayerChange = 0x21, HsPlayerChange = 0x21,
HsWatchChange = 0x22 HsWatchChange = 0x22,
TeammateSurrender = 0x23
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment