UltimateZoneBuilder/Source/Config/OthersTextureSet.cs

86 lines
1.9 KiB
C#
Raw Normal View History

2008-09-30 15:09:37 +00:00
#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
{
2008-10-01 14:17:52 +00:00
internal sealed class OthersTextureSet : TextureSet, IFilledTextureSet
2008-09-30 15:09:37 +00:00
{
#region ================== Constants
public const string NAME = "Other";
#endregion
2008-10-01 14:17:52 +00:00
#region ================== Variables
// Matching textures and flats
private List<ImageData> textures;
private List<ImageData> flats;
#endregion
#region ================== Properties
2008-09-30 15:09:37 +00:00
2008-10-01 14:17:52 +00:00
public ICollection<ImageData> Textures { get { return textures; } }
public ICollection<ImageData> Flats { get { return flats; } }
2008-09-30 15:09:37 +00:00
2008-10-01 14:17:52 +00:00
#endregion
#region ================== Constructor / Destructor
2008-09-30 15:09:37 +00:00
// New texture set constructor
public OthersTextureSet()
{
this.name = NAME;
2008-10-01 14:17:52 +00:00
this.textures = new List<ImageData>();
this.flats = new List<ImageData>();
2008-09-30 15:09:37 +00:00
}
#endregion
2008-10-01 14:17:52 +00:00
#region ================== Methods
internal void AddTexture(ImageData image)
{
textures.Add(image);
}
internal void AddFlat(ImageData image)
{
flats.Add(image);
}
#endregion
2008-09-30 15:09:37 +00:00
}
}