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:
@@ -37,6 +37,18 @@ namespace SabreTools.DatItems.Formats
|
||||
DupeType = 0x00;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a Media object from the internal model
|
||||
/// </summary>
|
||||
public Media(Models.Metadata.Media? item)
|
||||
{
|
||||
_internal = item ?? [];
|
||||
Machine = new Machine();
|
||||
|
||||
ItemType = ItemType.Media;
|
||||
DupeType = 0x00;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a Media object from a BaseFile
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user