Esempio n. 1
0
        public void ApplyBlacklistParts()
        {
            InvalidPartBooter.ParseInvalidParts <InvalidPart>();

            foreach (KeyValuePair <ResourceKey, List <InvalidPart> > value in mBlacklistParts)
            {
                foreach (InvalidPart part in value.Value)
                {
                    InvalidPartBooter.AddInvalidPart(value.Key, part);
                }
            }
        }
Esempio n. 2
0
        public void AddBlacklistPart(ResourceKey key, InvalidPart invalid)
        {
            List <InvalidPart> parts;

            if (!mBlacklistParts.TryGetValue(key, out parts))
            {
                parts = new List <InvalidPart>();
                mBlacklistParts.Add(key, parts);
            }

            parts.Add(invalid);

            InvalidPartBooter.AddInvalidPart(key, invalid);
        }