Added documentation and reverse implicit operator to BasicEntry

This commit is contained in:
David Higueros committed 2026-07-12 12:42:42 -06:00
1 parent 98a0d3e2a6
commit 3f952da5b2
1 file changed
+6
+6
View File
@@ -25,9 +25,15 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr)
ShapeshifterPanel Panel { get; }
}
/// <summary>
/// Menu Entry used when specifically only the Panel itself is required.
/// </summary>
/// <param name="Panel">The <see cref="ShapeshifterPanel"/> instance.</param>
protected record class BasicEntry(ShapeshifterPanel Panel) : IMenuEntry
{
public static implicit operator ShapeshifterPanel(BasicEntry entry) => entry.Panel;
public static implicit operator BasicEntry(ShapeshifterPanel panel) => new(panel);
}
public List<IMenuEntry> menuEntries;