mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFiles/] Add constructor to "cast" base class
This commit is contained in:
@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class AttractMode : DatFile
|
public class AttractMode : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public AttractMode(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an AttractMode DAT and return all found games within
|
/// Parse an AttractMode DAT and return all found games within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -26,6 +26,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ClrMamePro : DatFile
|
public class ClrMamePro : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public ClrMamePro(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a ClrMamePro DAT and return all found games and roms within
|
/// Parse a ClrMamePro DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -24,6 +24,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class DosCenter : DatFile
|
public class DosCenter : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public DosCenter(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a DosCenter DAT and return all found games and roms within
|
/// Parse a DosCenter DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Hashfile : DatFile
|
public class Hashfile : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public Hashfile(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a hashfile or SFV and return all found games and roms within
|
/// Parse a hashfile or SFV and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -26,6 +26,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Listroms : DatFile
|
public class Listroms : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public Listroms(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a MAME Listroms DAT and return all found games and roms within
|
/// Parse a MAME Listroms DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -27,6 +27,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Logiqx : DatFile
|
public class Logiqx : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public Logiqx(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a Logiqx XML DAT and return all found games and roms within
|
/// Parse a Logiqx XML DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -24,6 +24,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Missfile : DatFile
|
public class Missfile : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public Missfile(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a Missfileand return all found games and roms within
|
/// Parse a Missfileand return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class OfflineList : DatFile
|
public class OfflineList : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public OfflineList(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an OfflineList XML DAT and return all found games and roms within
|
/// Parse an OfflineList XML DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -26,6 +26,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class RomCenter : DatFile
|
public class RomCenter : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public RomCenter(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a RomCenter DAT and return all found games and roms within
|
/// Parse a RomCenter DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SabreDat : DatFile
|
public class SabreDat : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public SabreDat(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an SabreDat XML DAT and return all found games and roms within
|
/// Parse an SabreDat XML DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -23,6 +23,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SeparatedValue : DatFile
|
public class SeparatedValue : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public SeparatedValue(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse a character-separated value DAT and return all found games and roms within
|
/// Parse a character-separated value DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SoftwareList : DatFile
|
public class SoftwareList : DatFile
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor designed for casting a base DatFile
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
|
public SoftwareList(DatFile datFile)
|
||||||
|
{
|
||||||
|
this._datHeader = datFile._datHeader;
|
||||||
|
this._items = datFile._items;
|
||||||
|
this._sortedBy = datFile._sortedBy;
|
||||||
|
this._datStats = datFile._datStats;
|
||||||
|
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an SabreDat XML DAT and return all found games and roms within
|
/// Parse an SabreDat XML DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user