mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Added documentation and reverse implicit operator to BasicEntry
This commit is contained in:
1 parent
98a0d3e2a6
commit
3f952da5b2
1 file changed
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user