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; } }
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; } }
/// <summary> /// Updates internal references /// </summary> public static void Update() { Eve = new EVE.ISXEVE.EVE(); Ext = new EVE.ISXEVE.Extension(); Ship = new EVE.ISXEVE.Ship(); }