mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Create overloads for CreateDatFile
This commit is contained in:
@@ -31,6 +31,21 @@ namespace SabreTools.DatFiles
|
||||
|
||||
#region Creation
|
||||
|
||||
/// <summary>
|
||||
/// Create a generic DatFile to be used
|
||||
/// </summary>
|
||||
/// <returns>A default Logiqx DatFile</returns>
|
||||
public static DatFile CreateDatFile()
|
||||
=> CreateDatFile(DatFormat.Logiqx, baseDat: null, quotes: true);
|
||||
|
||||
/// <summary>
|
||||
/// Create a specific type of DatFile to be used based on a format
|
||||
/// </summary>
|
||||
/// <param name="datFormat">Format of the DAT to be created</param>
|
||||
/// <returns>DatFile of the specific internal type</returns>
|
||||
public static DatFile CreateDatFile(DatFormat datFormat)
|
||||
=> CreateDatFile(datFormat, baseDat: null, quotes: true);
|
||||
|
||||
/// <summary>
|
||||
/// Create a specific type of DatFile to be used based on a format and a base DAT
|
||||
/// </summary>
|
||||
@@ -38,7 +53,7 @@ namespace SabreTools.DatFiles
|
||||
/// <param name="baseDat">DatFile containing the information to use in specific operations</param>
|
||||
/// <param name="quotes">For relevant types, assume the usage of quotes</param>
|
||||
/// <returns>DatFile of the specific internal type that corresponds to the inputs</returns>
|
||||
public static DatFile CreateDatFile(DatFormat? datFormat = null, DatFile? baseDat = null, bool quotes = true)
|
||||
public static DatFile CreateDatFile(DatFormat datFormat, DatFile? baseDat, bool quotes)
|
||||
{
|
||||
return datFormat switch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user