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