Add AttractMode internal converters

This commit is contained in:
Matt Nadareski
2023-08-01 23:51:14 -04:00
parent 6439f92bb3
commit 3474c9c8c4
2 changed files with 36 additions and 0 deletions

View File

@@ -82,5 +82,23 @@ namespace SabreTools.Serialization
}
#endregion
#region AttractMode
/// <summary>
/// Convert from <cref="Models.AttractMode.Row"/> to <cref="Models.Internal.Rom"/>
/// </summary>
public static Models.Internal.Rom ConvertFromAttractMode(Models.AttractMode.Row item)
{
var rom = new Models.Internal.Rom
{
[Models.Internal.Rom.NameKey] = item.Title,
[Models.Internal.Rom.AltRomnameKey] = item.AltRomname,
[Models.Internal.Rom.AltTitleKey] = item.AltTitle,
};
return rom;
}
#endregion
}
}