// Duplication
        internal DefinedTextureSet Copy()
        {
            // Make a copy
            DefinedTextureSet s = new DefinedTextureSet(this.name);

            s.filters = new List <string>(this.filters);
            return(s);
        }
Esempio n. 2
0
        // Texture set from defined set
        public MatchingTextureSet(DefinedTextureSet definedset)
        {
            // Copy the name
            this.name = definedset.Name;

            // Copy the filters
            this.filters = new List <string>(definedset.Filters);

            // Setup
            Setup();
        }
Esempio n. 3
0
        // Texture Sets
        private void LoadTextureSets()
        {
            IDictionary dic;

            // Get sets
            dic = cfg.ReadSetting("texturesets", new Hashtable());
            foreach (DictionaryEntry de in dic)
            {
                DefinedTextureSet s = new DefinedTextureSet(cfg, "texturesets." + de.Key.ToString());
                texturesets.Add(s);
            }
        }