Exemple #1
0
 public void SendScoreTeamKill(ScoreContext killer, ScoreContext target, AttackAttribute attackAttribute)
 {
     Room.Broadcast(new SScoreTeamKillAckMessage(
                        new Score2Dto(
                            killer.SentryId ?? killer.Player.PeerId,
                            target.SentryId ?? target.Player.PeerId, attackAttribute)));
 }
Exemple #2
0
 public void SendScoreKill(ScoreContext killer, ScoreContext assist, ScoreContext target, AttackAttribute attackAttribute)
 {
     if (assist != null)
     {
         Room.Broadcast(new SScoreKillAssistAckMessage(
                            new ScoreAssistDto(
                                killer.SentryId ?? killer.Player.PeerId,
                                assist.SentryId ?? assist.Player.PeerId,
                                target.SentryId ?? target.Player.PeerId, attackAttribute)));
     }
     else
     {
         Room.Broadcast(new SScoreKillAckMessage(
                            new ScoreDto(
                                killer.SentryId ?? killer.Player.PeerId,
                                target.SentryId ?? target.Player.PeerId, attackAttribute)));
     }
 }
Exemple #3
0
 public void SendScoreMission(ScoreContext context, int scoreGained)
 {
     Room.Broadcast(new SMissionScoreAckMessage(context.Player.Account.Id, scoreGained));
 }