Ejemplo n.º 1
0
        public override void InFrameCleanup()
        {
            foreach (var item in _cargo)
            {
                item.Dispose();
            }
            _cargo.Clear();

            _oreHoldCargo.Clear();

            foreach (var item in _drones)
            {
                item.Dispose();
            }
            _drones.Clear();

            foreach (var module in _modules)
            {
                module.Dispose();
            }
            _modules.Clear();

            if (_ship != null)
            {
                _ship.Dispose();
                _ship = null;
            }
        }
Ejemplo n.º 2
0
        private static void Pulse(object sender, LSEventArgs e)
        {
            using (new FrameLock(true))
            {
                if (DateTime.Now > NextPulse)
                {
                    NextPulse = DateTime.Now.AddSeconds(PulseRate);
                    Eve       = new EVE.ISXEVE.EVE();
                    Me        = new EVE.ISXEVE.Me();
                    MyShip    = new EVE.ISXEVE.Ship();

                    DaedalusUI.Text = "Daedalus - " + Me.Name + " [" + m_RoutineController.ActiveRoutine.ToString() + "]";
                    if (!Paused)
                    {
                        b_Mining.Pulse();
                    }
                }
                return;
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Updates internal references
 /// </summary>
 public static void Update()
 {
     Eve  = new EVE.ISXEVE.EVE();
     Ext  = new EVE.ISXEVE.Extension();
     Ship = new EVE.ISXEVE.Ship();
 }