上传编译代码
This commit is contained in:
parent
7ee791ca1a
commit
b059dd7c7b
19
Client.cs
19
Client.cs
@ -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.
Binary file not shown.
Loading…
Reference in New Issue
Block a user