You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.8 KiB

namespace Battle
{
internal static class BattleMatchNotify
{
public static void NotifyAllPlayerCancelBattle(BattleObj battle)
{
// TraceLog.Trace("BattleMatchNotify.NotifyAllPlayerCancelBattle battleId {0}", battle.InitBattleData.BattleId);
//
// CSBattleCancelRes res = new CSBattleCancelRes();
// res.BattleId = battle.InitBattleData.BattleId;
//
// foreach (var player in battle.playerList)
// {
// BattleServerUtils.GetPacketSender().SendToServerByID(
// player.GameSvrId, (int)CSGameMsgID.BattleCancelRes, ref res, player.Uid);
// }
}
public static void NotifyAllPlayerBattleStageEnd(BattleObj battle)
{
// TraceLog.Trace("BattleMatchNotify.NotifyAllPlayerStageEnd battleId {0}", battle.BattleId);
// var notify = new CSBattleStageEndNotify();
// notify.BattleId = battle.BattleId;
// notify.NowStage = battle.nowStage;
// foreach (var player in battle.playerList)
// {
// BattleServerUtils.GetPacketSender().SendToServerByID(
// player.GameSvrId,(int)CSGameMsgID.BattleStageEndNotify, ref notify, player.Uid);
// }
}
public static void NotifyAllPlayerBattleEnd(BattleObj battle)
{
// TraceLog.Trace("BattleMatchNotify.NotifyAllPlayerBattleEnd battleId {0}", battle.BattleId);
//
// var notify = new CSBattleEndNotify();
// notify.BattleId = battle.BattleId;
//
// foreach (var player in battle.playerList)
// {
// BattleServerUtils.GetPacketSender().SendToServerByID(
// player.GameSvrId, (int)CSGameMsgID.BattleEndNotify, ref notify, player.Uid);
// }
}
}
}