上传战斗结束通知
This commit is contained in:
parent
7bd1f069fc
commit
a7c6aeb14f
@ -211,17 +211,17 @@ namespace BattleServer
|
||||
socket.Send(data);
|
||||
}
|
||||
|
||||
private void OnFinish(BattleCmd cmd)
|
||||
private void OnFinish(BattleReport report)
|
||||
{
|
||||
|
||||
ComEndFight _cmd = HotUpdateScripts.FightCmdUtil.PasreCmd(cmd) as ComEndFight;
|
||||
// ComEndFight _cmd = HotUpdateScripts.FightCmdUtil.PasreCmd(cmd) as ComEndFight;
|
||||
// Console.WriteLine("----------------------OnFinish {0}", _cmd.fightId);
|
||||
BattleRpcMessage msg = new BattleRpcMessage();
|
||||
msg.method = "BattleFished";
|
||||
msg.data = new Google.Protobuf.WellKnownTypes.Any
|
||||
{
|
||||
type_url = "type.googleapis.com/BattleFinishPush",
|
||||
value = ProtoSerialize(new BattleFinishPush { battleid = _cmd.fightId, winSide = _cmd.winSide }),
|
||||
value = ProtoSerialize(new BattleFinishPush { battleid = report.info.id, winSide = report.winSide, report = report }),
|
||||
};
|
||||
|
||||
byte[] data = ProtoSerialize(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user