M_WolfCurses_Window_2_AddCommand - Maxwolf/WolfCurses GitHub Wiki

Window(TCommands, TData).AddCommand Method

Adds a new game menu selection with description pulled from attribute on input enumeration. This override is not meant for menu selections where you want to manually specify the description of the menu item, this way it will be pulled from enum description attribute.

Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

protected void AddCommand(
	Action action,
	TCommands command
)

Parameters

 

action
Type: System.Action
Method that will be run when the choice is made.
command
Type: TCommands
Associated input that will trigger the respective action in the active game Windows.

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

Window(TCommands, TData) Class
WolfCurses Namespace

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