T_WolfCurses_Menu_MenuChoice_1 - Maxwolf/WolfCurses GitHub Wiki

MenuChoice(T) Class

Defines a choice in the dynamic action selection system for a given game mode. This is intended to be used by a wrapper for menu choices that aggregates all of the possible actions a given game mode can make while it is active in the simulation.

Inheritance Hierarchy

System.Object
  WolfCurses.Menu.MenuChoice(T)
Namespace: WolfCurses.Menu
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public sealed class MenuChoice<T> : IMenuChoice<T>
where T : struct, new(), IComparable, IFormattable, IConvertible

Type Parameters

 

T
  The MenuChoice(T) type exposes the following members.

Constructors

 

Name Description
Public method MenuChoice(T) Initializes a new instance of the MenuChoice(T) class.
  Back to Top

Properties

 

Name Description
Public property Action Gets or sets the action.
Public property Command Gets or sets the command.
Public property Description Gets or sets the description.
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Public Extension Method ToDescriptionAttribute Attempts to grab description attribute from any object. (Defined by AttributeExtensions.)
  Back to Top

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

WolfCurses.Menu Namespace

⚠️ **GitHub.com Fallback** ⚠️