/// <summary> /// Initializes a new instance of the <see cref="Item" /> class. /// </summary> /// <param name="menu"> /// The menu. /// </param> /// <param name="enabled"> /// if set to <c> true </c> [enabled]. /// </param> /// <param name="orbwalker"> /// The orbwalker. /// </param> public Item(Menu menu, bool enabled, Orbwalking.Orbwalker orbwalker) { if (!enabled) return; Objects.ProjectLogger.WriteLog("Item Menu and events loaded."); menu.AddSubMenu(Menu()); // ReSharper disable once UnusedVariable var items=new Events.Item(orbwalker); }
/// <summary> /// Initializes a new instance of the <see cref="Item" /> class. /// </summary> /// <param name="menu"> /// The menu. /// </param> /// <param name="enabled"> /// if set to <c> true </c> [enabled]. /// </param> /// <param name="orbwalker"> /// The orbwalker. /// </param> public Item(Menu menu, bool enabled, Orbwalking.Orbwalker orbwalker) { if (!enabled) { return; } StaticObjects.ProjectLogger.WriteLog("Item Menu and events loaded."); menu.AddSubMenu(Menu()); // ReSharper disable once UnusedVariable var items = new Events.Item(orbwalker); }