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:
@@ -48,6 +48,17 @@ namespace SabreTools.DatItems.Formats
|
||||
ItemType = ItemType.DipValue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a DipValue object from the internal model
|
||||
/// </summary>
|
||||
public DipValue(Models.Metadata.DipValue? item)
|
||||
{
|
||||
_internal = item ?? [];
|
||||
Machine = new Machine();
|
||||
|
||||
ItemType = ItemType.DipValue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Cloning Methods
|
||||
|
||||
Reference in New Issue
Block a user