GameServer..::..PlayNewGame Method

Plays a game. If the game cannot be played false is immediately returned; otherwise, the game is played out and true is returned when the game is over.

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

Syntax


public bool PlayNewGame(
	IConsoleViewPort console,
	Nullable<ICorePersistentStorage> persistentStorage,
	Nullable<Configuration> configuration
)

Parameters

console
Type: IConsoleViewPort
persistentStorage
Type: Nullable<(Of <(<'ICorePersistentStorage>)>)>
The object responsible for saving the game. If this object is not provided, the game will not be saved.
configuration
Type: Nullable<(Of <(<'Configuration>)>)>
Represents configuration data to use when generating a new game.

Return Value