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 EmpireRating FromRank(int from)
        {
            EmpireRating result = AllOfThem.FirstOrDefault(v => v.rank == from);

            if (result == null)
            {
                Logging.Info("Unknown Empire Rating rank " + from);
            }
            return(result);
        }
예제 #3
0
        public static EmpireRating FromRank(int from)
        {
            EmpireRating result = RATINGS.FirstOrDefault(v => v.rank == from);

            if (result == null)
            {
                Logging.Report("Unknown Empire Rating rank " + from);
            }
            return(result);
        }
예제 #4
0
        public static EmpireRating FromName(string from)
        {
            EmpireRating result = RATINGS.FirstOrDefault(v => v.name == from);

            if (result == null)
            {
                Logging.Report("Unknown Empire Rating name " + from);
            }
            return(result);
        }
예제 #5
0
        public static EmpireRating FromEDName(string from)
        {
            string       tidiedFrom = from == null ? null : from.ToLowerInvariant();
            EmpireRating result     = RATINGS.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom);

            if (result == null)
            {
                Logging.Report("Unknown Empire Rating ED name " + from);
            }
            return(result);
        }
예제 #6
0
        public static EmpireRating FromEDName(string from)
        {
            if (from == null)
            {
                return(null);
            }

            string       tidiedFrom = from.ToLowerInvariant();
            EmpireRating result     = AllOfThem.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom);

            if (result == null)
            {
                Logging.Info("Unknown Empire Rating ED name " + from);
            }
            return(result);
        }
예제 #7
0
        public static EmpireRating FromName(string from)
        {
            if (from == null)
            {
                return(null);
            }

            EmpireRating result = AllOfThem.FirstOrDefault(v =>
                                                           v.maleRank.invariantName == from ||
                                                           v.maleRank.localizedName == from
                                                           );

            if (result == null)
            {
                Logging.Info("Unknown Empire Rating name " + from);
            }
            return(result);
        }