上传编译代码

This commit is contained in:
liwei1dao 2023-02-11 00:09:32 +08:00
parent 7ee791ca1a
commit b059dd7c7b
12 changed files with 18 additions and 1 deletions

View File

@ -97,6 +97,7 @@ namespace BattleServer
BattleInCmdReq InCmdReq = ProtoDeSerialize<BattleInCmdReq>(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<BattleConcedeReq>(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;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.