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))); }
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))); } }
public void SendScoreMission(ScoreContext context, int scoreGained) { Room.Broadcast(new SMissionScoreAckMessage(context.Player.Account.Id, scoreGained)); }