Esempio n. 1
0
        private static bool ShouldDo(Unlock unlock, Dictionary <string, ParsedArg> config,
                                     Dictionary <string, TagExpectedValue> tags, Type unlockType)
        {
            UnlockType type      = Unlock.GetUnlockType(unlockType);
            string     typeLower = type.ToString().ToLowerInvariant();

            if (config == null)
            {
                return(unlock.Type == type);
            }

            return(unlock.Type == type && config.ContainsKey(typeLower) &&
                   config[typeLower].ShouldDo(unlock.GetName(), tags));
        }