Add constructors for internal models

This commit is contained in:
Matt Nadareski
2024-03-09 21:46:38 -05:00
parent 24d4e352a4
commit f37e3a07da
37 changed files with 400 additions and 3 deletions

View File

@@ -34,6 +34,17 @@ namespace SabreTools.DatItems.Formats
ItemType = ItemType.Sample;
}
/// <summary>
/// Create a Sample object from the internal model
/// </summary>
public Sample(Models.Metadata.Sample? item)
{
_internal = item ?? [];
Machine = new Machine();
ItemType = ItemType.Sample;
}
#endregion
#region Cloning Methods