public virtual void TeamRespawn(PvPTeam team) { if (team != null && !team.Deleted) { team.ForEachMember(team.Respawn); } }
public virtual void RevokeTeamPoints(PvPTeam team) { if (team != null) { team.ForEachMember(pm => UpdateStatistics(team, pm, o => o.PointsLost += GetAwardPoints(team, pm))); } }
public virtual void AwardTeamPoints(PvPTeam team, int points) { if (team != null && points > 0) { team.ForEachMember(pm => UpdateStatistics(team, pm, o => o.PointsGained += points)); } }
public virtual void TeamEject(PvPTeam team) { if (team != null && !team.Deleted) { team.ForEachMember(member => team.RemoveMember(member, true)); } }
public virtual void TeamLoseEject(PvPTeam team) { if (team == null || team.Deleted) { return; } OnTeamLose(team); team.ForEachMember(member => team.RemoveMember(member, true)); }
public virtual void TeamWinEject(PvPTeam team) { if (team == null || team.Deleted) { return; } OnTeamWin(team); team.ForEachMember(pm => team.RemoveMember(pm, true)); }
public virtual void AwardTeamPoints(PvPTeam team, int points) { if (team != null) { team.ForEachMember( pm => { EnsureStatistics(pm).PointsGained += points; AutoPvP.EnsureProfile(pm).Points += points; }); } }
public virtual void RevokeTeamPoints(PvPTeam team, int points) { if (team != null) { team.ForEachMember( pm => { EnsureStatistics(pm).PointsLost += points; AutoPvP.EnsureProfile(pm).Points -= points; }); } }
public virtual void OnTeamLose(PvPTeam team) { team.ForEachMember(RefreshStats); team.ForEachMember(OnLose); }
public virtual void OnTeamWin(PvPTeam team) { team.ForEachMember(RefreshStats); team.ForEachMember(OnWin); }