コード例 #1
0
 public CrewHiredEvent(DateTime timestamp, string name, string faction, long price, CombatRating combatrating) : base(timestamp, NAME)
 {
     this.name = name;
     this.faction = faction;
     this.price = price;
     this.combatrating = combatrating.name;
 }
コード例 #2
0
 public ShipInterdictionEvent(DateTime timestamp, bool succeeded, bool iscommander, string interdictee, CombatRating rating, string faction, string power) : base(timestamp, NAME)
 {
     this.succeeded = succeeded;
     this.iscommander = iscommander;
     this.interdictee = interdictee;
     this.rating = (rating == null ? null : rating.name);
     this.faction = faction;
     this.power = power;
 }
コード例 #3
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;
 }
コード例 #4
0
        public static CombatRating FromRank(int from)
        {
            CombatRating result = RATINGS.FirstOrDefault(v => v.rank == from);

            if (result == null)
            {
                Logging.Report("Unknown Combat Rating rank " + from);
            }
            return(result);
        }
コード例 #5
0
        public static CombatRating FromName(string from)
        {
            CombatRating result = RATINGS.FirstOrDefault(v => v.name == from);

            if (result == null)
            {
                Logging.Report("Unknown Combat Rating name " + from);
            }
            return(result);
        }
コード例 #6
0
        public static CombatRating FromEDName(string from)
        {
            string       tidiedFrom = from == null ? null : from.ToLowerInvariant();
            CombatRating result     = RATINGS.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom);

            if (result == null)
            {
                Logging.Report("Unknown Combat Rating ED name " + from);
            }
            return(result);
        }
コード例 #7
0
ファイル: Killer.cs プロジェクト: rodan123/EDDI
        public Killer(string edName, string edModel, CombatRating rating)
        {
            this.name         = edName;
            this.combatRating = rating;

            // Might be a ship
            killerShip = ShipDefinitions.FromEDModel(edModel, false);

            // Might be a SRV or Fighter
            killerVehicle = VehicleDefinition.EDNameExists(edModel) ? VehicleDefinition.FromEDName(edModel) : null;

            // Might be an on foot commander
            killerCmdrSuit = Suit.EDNameExists(edModel) ? Suit.FromEDName(edModel) : null;

            // Might be an on foot NPC
            killerNpcSuitLoadout = NpcSuitLoadout.EDNameExists(edModel) ? NpcSuitLoadout.FromEDName(edModel) : null;
        }
コード例 #8
0
 public Target(string name, CombatRating combatrank, string ship)
 {
     this.name       = name;
     this.CombatRank = combatrank;
     this.ship       = ship;
 }
コード例 #9
0
 public KilledEvent(DateTime timestamp, string victim, CombatRating rating) : base(timestamp, NAME)
 {
     this.victim = victim;
     this.rating = (rating == null ? null : rating.name);
 }
コード例 #10
0
 public CombatPromotionEvent(DateTime timestamp, CombatRating rating) : base(timestamp, NAME)
 {
     this.rating = rating.name;
 }