mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add constructors for internal models
This commit is contained in:
@@ -81,6 +81,17 @@ namespace SabreTools.DatItems.Formats
|
||||
SetFieldValue<ItemStatus>(Models.Metadata.Disk.StatusKey, ItemStatus.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a Disk object from the internal model
|
||||
/// </summary>
|
||||
public Disk(Models.Metadata.Disk? item)
|
||||
{
|
||||
_internal = item ?? [];
|
||||
Machine = new Machine();
|
||||
|
||||
ItemType = ItemType.Disk;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Cloning Methods
|
||||
|
||||
Reference in New Issue
Block a user