コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }