コード例 #1
0
 private static void Events_StatusInMainMenu(object sender, EliteAPI.Events.StatusEvent e)
 {
     if (e.Event.Equals("Status.InMainMenu", StringComparison.OrdinalIgnoreCase) && e.Value.Equals(true))
     {
         currentSessions.Shutdown(e.Timestamp);
     }
 }
コード例 #2
0
        private static void Events_StatusFsdChargingEvent(object sender, EliteAPI.Events.StatusEvent e)
        {
            if (_stopMiningOnFsdJump)
            {
                currentSessions.StoppedMining(e.Timestamp.ToUniversalTime(), EventReasons.FSDCharge);
            }

            if (_stopMiningOnFsdJump)
            {
                currentSessions.StoppedCombat(e.Timestamp.ToUniversalTime(), EventReasons.FSDCharge);
            }

            // We will combine travel and trade in a summary
            if (_stopMiningOnFsdJump)
            {
                currentSessions.StoppedTrading(e.Timestamp.ToUniversalTime(), EventReasons.FSDCharge);
            }

            if (_stopMiningOnFsdJump)
            {
                currentSessions.StoppedScavenging(e.Timestamp.ToUniversalTime(), EventReasons.FSDCharge);
            }
        }
コード例 #3
0
 public abstract void HardpointsEvent(EliteAPI.Events.StatusEvent e);
コード例 #4
0
 private static void Events_StatusScoopingEvent(object sender, EliteAPI.Events.StatusEvent e)
 {
     var session = currentSessions.StartedScavenging(e.Timestamp, EventReasons.CargoScooping);
 }
コード例 #5
0
 public abstract void ShieldsEvent(EliteAPI.Events.StatusEvent e);