diff --git a/Client.cs b/Client.cs index e88b3da..1b4a4c8 100644 --- a/Client.cs +++ b/Client.cs @@ -97,6 +97,7 @@ namespace BattleServer BattleInCmdReq InCmdReq = ProtoDeSerialize(msg.data.value); HotUpdateScripts.FightRunnerMgr.Instance.PvpInput(InCmdReq.battleid, InCmdReq.side, InCmdReq.@in, (issucc) => { + Console.WriteLine("处理InCmd 1------- end !"); msg.data = new Google.Protobuf.WellKnownTypes.Any { type_url = "type.googleapis.com/BattleInCmdResp", @@ -104,7 +105,23 @@ namespace BattleServer }; _msg = ProtoSerialize(msg); socket.Send(_msg); - Console.WriteLine("处理InCmd end !"); + Console.WriteLine("处理InCmd 1------- end !"); + }); + + break; + case "Concede": //向战斗场景输入指令 + Console.WriteLine("处理 Concede !"); + BattleConcedeReq ConcedeReq = ProtoDeSerialize(msg.data.value); + HotUpdateScripts.FightRunnerMgr.Instance.InitiativeFail(ConcedeReq.battleid, ConcedeReq.side, (issucc) => + { + msg.data = new Google.Protobuf.WellKnownTypes.Any + { + type_url = "type.googleapis.com/BattleConcedeResp", + value = ProtoSerialize(new BattleConcedeResp { issucc = issucc }), + }; + _msg = ProtoSerialize(msg); + socket.Send(_msg); + Console.WriteLine("处理 Concede end !"); }); break; diff --git a/bin/Debug/net6.0/FightRunner.dll b/bin/Debug/net6.0/FightRunner.dll index 82383a8..6f612a0 100644 Binary files a/bin/Debug/net6.0/FightRunner.dll and b/bin/Debug/net6.0/FightRunner.dll differ diff --git a/bin/Debug/net6.0/GameFight.dll b/bin/Debug/net6.0/GameFight.dll index 68fa5b1..1d852fc 100644 Binary files a/bin/Debug/net6.0/GameFight.dll and b/bin/Debug/net6.0/GameFight.dll differ diff --git a/bin/Debug/net6.0/GameProto.dll b/bin/Debug/net6.0/GameProto.dll index c025972..9ad6222 100644 Binary files a/bin/Debug/net6.0/GameProto.dll and b/bin/Debug/net6.0/GameProto.dll differ diff --git a/bin/Debug/net6.0/dfbattle.dll b/bin/Debug/net6.0/dfbattle.dll index ddaf6da..8dbf7c2 100644 Binary files a/bin/Debug/net6.0/dfbattle.dll and b/bin/Debug/net6.0/dfbattle.dll differ diff --git a/bin/Debug/net6.0/dfbattle.pdb b/bin/Debug/net6.0/dfbattle.pdb index 5dbfb51..3a87a4c 100644 Binary files a/bin/Debug/net6.0/dfbattle.pdb and b/bin/Debug/net6.0/dfbattle.pdb differ diff --git a/lib/FightRunner.dll b/lib/FightRunner.dll index 82383a8..6f612a0 100644 Binary files a/lib/FightRunner.dll and b/lib/FightRunner.dll differ diff --git a/lib/GameFight.dll b/lib/GameFight.dll index 68fa5b1..1d852fc 100644 Binary files a/lib/GameFight.dll and b/lib/GameFight.dll differ diff --git a/lib/GameProto.dll b/lib/GameProto.dll index c025972..9ad6222 100644 Binary files a/lib/GameProto.dll and b/lib/GameProto.dll differ diff --git a/obj/Debug/net6.0/dfbattle.csproj.AssemblyReference.cache b/obj/Debug/net6.0/dfbattle.csproj.AssemblyReference.cache index e388e60..4ac5c1c 100644 Binary files a/obj/Debug/net6.0/dfbattle.csproj.AssemblyReference.cache and b/obj/Debug/net6.0/dfbattle.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/net6.0/dfbattle.dll b/obj/Debug/net6.0/dfbattle.dll index ddaf6da..8dbf7c2 100644 Binary files a/obj/Debug/net6.0/dfbattle.dll and b/obj/Debug/net6.0/dfbattle.dll differ diff --git a/obj/Debug/net6.0/dfbattle.pdb b/obj/Debug/net6.0/dfbattle.pdb index 5dbfb51..3a87a4c 100644 Binary files a/obj/Debug/net6.0/dfbattle.pdb and b/obj/Debug/net6.0/dfbattle.pdb differ