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

@@ -137,13 +137,13 @@ namespace SabreTools.DatItems.Formats
/// <summary>
/// Create a Rom object from the internal model
/// </summary>
public Rom(Models.Metadata.Rom? rom)
public Rom(Models.Metadata.Rom? item)
{
_internal = rom ?? [];
_internal = item ?? [];
Machine = new Machine();
ItemType = ItemType.Rom;
DupeType = 0x00;
SetFieldValue<ItemStatus>(Models.Metadata.Rom.StatusKey, ItemStatus.None);
}
#endregion