// Token: 0x06000F11 RID: 3857 RVA: 0x00055788 File Offset: 0x00053988
        public override bool ApplyWorker(XmlDocument xml)
        {
            bool flag = false;

            for (int i = 0; i < this.mods.Count; i++)
            {
                if (ModLister.HasActiveModWithName(this.mods[i]))
                {
                    flag = true;
                    //	Log.Message("Found Named " + this.mods[i]);
                    break;
                }
                if (ModLister.GetActiveModWithIdentifier(this.mods[i]) != null)
                {
                    flag = true;
                    //	Log.Message("Found ID " + this.mods[i]);
                    break;
                }
            }
            if (flag)
            {
                if (this.match != null)
                {
                    return(this.match.Apply(xml));
                }
            }
            else
            {
                if (this.nomatch != null)
                {
                    return(this.nomatch.Apply(xml));
                }
            }
            return(true);
        }
Exemple #2
0
        protected override bool ApplyWorker(XmlDocument xml)
        {
            bool flag = false;

            for (int i = 0; i < this.mods.Count; i++)
            {
                if (ModLister.HasActiveModWithName(this.mods[i]))
                {
                    flag = true;
                    break;
                }
            }
            if (flag)
            {
                if (this.match != null)
                {
                    return(this.match.Apply(xml));
                }
            }
            else if (this.nomatch != null)
            {
                return(this.nomatch.Apply(xml));
            }
            return(false);
        }
Exemple #3
0
        public override bool ApplyWorker(XmlDocument xml)
        {
            bool flag = false;

            for (int i = 0; i < this.mods.Count; i++)
            {
                if (ModLister.HasActiveModWithName(this.mods[i]))
                {
                    flag = true;
                    if (log && AMAMod.Dev)
                    {
                        string text = string.Format("Name:: [{0}] Found by {1} ", this.mods[i], this);
                        if (!string.IsNullOrEmpty(this.sourceFile))
                        {
                            text = text + "\nfile: " + this.sourceFile;
                        }
                        Log.Message(text);
                    }
                    break;
                }
                if (ModLister.GetActiveModWithIdentifier(this.mods[i]) != null)
                {
                    flag = true;
                    if (log && AMAMod.Dev)
                    {
                        string text = string.Format("ID:: [{0}] Found by {1} ", this.mods[i], this);
                        if (!string.IsNullOrEmpty(this.sourceFile))
                        {
                            text = text + "\nfile: " + this.sourceFile;
                        }
                        Log.Message(text);
                    }
                    break;
                }
            }
            if (flag)
            {
                if (this.match != null)
                {
                    return(this.match.Apply(xml));
                }
            }
            else
            {
                if (this.nomatch != null)
                {
                    return(this.nomatch.Apply(xml));
                }
            }
            return(true);
        }