#region ================== Copyright (c) 2007 Pascal vd Heiden /* * Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com * This program is released under GNU General Public License * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #endregion #region ================== Namespaces using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Text; using CodeImp.DoomBuilder.IO; using CodeImp.DoomBuilder.Data; using System.IO; using System.Diagnostics; using System.Windows.Forms; using System.Text.RegularExpressions; using System.Collections.Specialized; #endregion namespace CodeImp.DoomBuilder.Config { internal sealed class ResourceTextureSet : TextureSet, IFilledTextureSet { #region ================== Constants #endregion #region ================== Variables // Matching textures and flats private List textures; private List flats; private int locationtype; #endregion #region ================== Properties public ICollection Textures { get { return textures; } } public ICollection Flats { get { return flats; } } public int LocationType { get { return locationtype; } } #endregion #region ================== Constructor / Destructor // New texture set constructor public ResourceTextureSet(string name, int locationtype) { this.name = name; this.locationtype = locationtype; this.textures = new List(); this.flats = new List(); } #endregion #region ================== Methods internal void AddTexture(ImageData image) { textures.Add(image); } internal void AddFlat(ImageData image) { flats.Add(image); } #endregion } }