Пример #1
0
        public static IEnumerable <PunishmentModule> GetAll(Dictionary <UserSettingExtension.SettingID, UserSetting> settings, List <WheelUserItem> items, DiscordContext context = null)
        {
            if (context == null)
            {
                context = new DiscordContext();
            }

            var allModules = ReflectiveEnumerator.GetEnumerableOfType <PunishmentModule>(settings, items);

            return(allModules);
        }
Пример #2
0
        public static IEnumerable <PunishmentModule> GetAll(Dictionary <UserSetting.SettingID, UserSetting> settings, List <WheelUserItem> items)
        {
            var allModules = ReflectiveEnumerator.GetEnumerableOfType <PunishmentModule>(settings, items);

            return(allModules);
        }