public CommanderRatingsEvent(DateTime timestamp, CombatRating combat, TradeRating trade, ExplorationRating exploration, CQCRating cqc, EmpireRating empire, FederationRating federation) : base(timestamp, NAME) { this.combat = combat; this.trade = trade; this.exploration = exploration; this.cqc = cqc; this.empire = empire; this.federation = federation; }
public static FederationRating FromRank(int from) { FederationRating result = RATINGS.FirstOrDefault(v => v.rank == from); if (result == null) { Logging.Report("Unknown Federation Rating rank " + from); } return(result); }
public static FederationRating FromName(string from) { FederationRating result = RATINGS.FirstOrDefault(v => v.name == from); if (result == null) { Logging.Report("Unknown Federation Rating name " + from); } return(result); }
public static FederationRating FromEDName(string from) { string tidiedFrom = from == null ? null : from.ToLowerInvariant(); FederationRating result = RATINGS.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom); if (result == null) { Logging.Report("Unknown Federation Rating ED name " + from); } return(result); }