2026-03-10 14:28:09 -04:00
|
|
|
using SabreTools.Data.Models.AtariLynx;
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Data.Extensions
|
|
|
|
|
{
|
2026-03-18 17:15:03 -04:00
|
|
|
public static class AtariLynxCartExtensions
|
2026-03-10 14:28:09 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Convert a <see cref="Rotation"/> value to string
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string FromRotation(this Rotation rotation)
|
|
|
|
|
{
|
|
|
|
|
return rotation switch
|
|
|
|
|
{
|
|
|
|
|
Rotation.NoRotation => "No rotation (horizontal, buttons right)",
|
|
|
|
|
Rotation.RotateLeft => "Rotate left (vertical, buttons down)",
|
|
|
|
|
Rotation.RotateRight => "Rotate right (vertical, buttons up)",
|
|
|
|
|
_ => $"Unknown {(byte)rotation}",
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|