SaveGame..::..SelectItem Method

Returns an item selected by the player. If the player doesn't have any items capable of being selected, false is returned; otherwise the item selected by the user is returned on the output parameter. If the user cancels the selection, a true value is returned and the output item parameter is set to null.

Namespace:  AngbandOS.Core
Assembly:  AngbandOS.Core (in AngbandOS.Core.dll)

Syntax


public bool SelectItem(
	out Nullable<Item> itemIndex,
	string prompt,
	bool canChooseFromEquipment,
	bool canChooseFromInventory,
	bool canChooseFromFloor,
	Nullable<IItemFilter> itemFilter
)

Parameters

itemIndex
Type: Nullable<(Of <(<'Item>)>)>%
prompt
Type: String
canChooseFromEquipment
Type: Boolean
canChooseFromInventory
Type: Boolean
canChooseFromFloor
Type: Boolean
itemFilter
Type: Nullable<(Of <(<'IItemFilter>)>)>

Return Value