@Cards-TS
Preparing search index...
@cards-ts/core
GameStateControllerProvider
Class GameStateControllerProvider<Enum>
Type Parameters
Enum
extends
typeof
STANDARD_STATES
Implements
GenericControllerProvider
<
GameState
<
Enum
>
,
{}
,
GameStateController
<
Enum
>
>
Index
Constructors
constructor
Methods
controller
dependencies
initial
State
Constructors
constructor
new
GameStateControllerProvider
<
Enum
extends
{
END_GAME
:
"END_GAME"
;
START_GAME
:
"START_GAME"
}
,
>
()
:
GameStateControllerProvider
<
Enum
>
Type Parameters
Enum
extends
{
END_GAME
:
"END_GAME"
;
START_GAME
:
"START_GAME"
}
Returns
GameStateControllerProvider
<
Enum
>
Methods
controller
controller
(
state
:
Exclude
<
keyof
Enum
>
,
controllers
:
{}
,
)
:
GameStateController
<
Enum
>
Parameters
state
:
Exclude
<
keyof
Enum
>
controllers
:
{}
Returns
GameStateController
<
Enum
>
dependencies
dependencies
()
:
{}
Returns
{}
initial
State
initialState
()
:
Exclude
<
keyof
Enum
>
Return the initial state for the controller
Returns
Exclude
<
keyof
Enum
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
controller
dependencies
initial
State
@Cards-TS
Loading...