SaveGame..::..GetSpell Method

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

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

Syntax


public bool GetSpell(
	out Nullable<Spell> selectedSpell,
	string prompt,
	BookItem spellBook,
	bool known
)

Parameters

selectedSpell
Type: Nullable<(Of <(<'Spell>)>)>%
prompt
Type: String
spellBook
Type: BookItem
known
Type: Boolean