UltimateZoneBuilder/Source/Data/DirectoryReader.cs

92 lines
1.8 KiB
C#
Raw Normal View History

2007-10-01 20:57:41 +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 System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using CodeImp.DoomBuilder.IO;
#endregion
namespace CodeImp.DoomBuilder.Data
{
internal class DirectoryReader : IDataReader
2007-10-01 20:57:41 +00:00
{
#region ================== Constants
#endregion
#region ================== Variables
// Source
private string path;
private bool readtextures;
private bool readflats;
2007-10-01 20:57:41 +00:00
// Disposing
private bool isdisposed = false;
#endregion
#region ================== Properties
// Disposing
public bool IsDisposed { get { return isdisposed; } }
#endregion
#region ================== Constructor / Disposer
// Constructor
public DirectoryReader(DataLocation dl)
2007-10-01 20:57:41 +00:00
{
// Initialize
this.path = dl.location;
this.readtextures = dl.textures;
this.readflats = dl.flats;
2007-10-01 20:57:41 +00:00
// We have no destructor
GC.SuppressFinalize(this);
}
// Disposer
2007-10-01 20:57:41 +00:00
public void Dispose()
{
// Not already disposed?
if(!isdisposed)
{
// Clean up
2007-10-01 20:57:41 +00:00
// Done
isdisposed = true;
}
}
#endregion
#region ================== Textures
2007-10-01 20:57:41 +00:00
#endregion
}
}