public void CheckInventoryHUDNecessity(CheckInventoryHUDNecessityEvent e, HUDNodes.SelfBattleUserAsTankNode selfUser, [JoinByUser, Combine] SlotNode slot, [JoinByModule] ModuleNode module)
        {
            IList <ModuleUsesCounterNode> source = base.Select <ModuleUsesCounterNode>(module.Entity, typeof(ModuleGroupComponent));
            bool flag = (source.Count == 0) || ((source.Count > 0) && (source.First <ModuleUsesCounterNode>().userItemCounter.Count > 0L));

            e.Necessity = e.Necessity || flag;
        }
        public void InitSlots(NodeAddedEvent e, SingleNode <InventoryHUDComponent> inventory, HUDNodes.SelfBattleUserAsTankNode selfUser, [JoinByUser] ICollection <ModuleNode> modules)
        {
            CheckInventoryHUDNecessityEvent eventInstance = new CheckInventoryHUDNecessityEvent();

            base.ScheduleEvent(eventInstance, selfUser);
            if (eventInstance.Necessity)
            {
                base.ScheduleEvent <InitSlotsEvent>(selfUser);
            }
        }