Preparing search index...
The search index is not available
pgul
pgul
StateBehaviour
Interface StateBehaviour<T, SL>
各状態の振る舞いを関数で指定
Type Parameters
T
SL
Hierarchy
StateBehaviour
Index
Properties
enter
update?
Properties
enter
enter
:
(
(
this
:
T
,
...
arg
:
any
)
=>
any
)
Type declaration
(
this
:
T
,
...
arg
:
any
)
:
any
状態遷移した際に一度だけ行う処理
thisの参照は設定したターゲット
update
経由で引数を渡すことも可能
Parameters
this:
T
Rest
...
arg:
any
Returns
any
Optional
update
update
?:
(
(
this
:
T
,
...
arg
:
any
)
=>
void
|
SL
)
Type declaration
(
this
:
T
,
...
arg
:
any
)
:
void
|
SL
その状態中、毎フレーム行う処理
thisの参照は設定したターゲット
update
経由で引数を渡すことも可能
状態ラベルをreturnするとその状態に移行(ただし同じ状態ラベルの時はそのまま)
Parameters
this:
T
Rest
...
arg:
any
Returns
void
|
SL
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
pgul
canvas
Utils
css
Utils
gamepad
Helper
radian
Converter
runner
Action
Creators
runner
Actions
utils
State
Behaviour
enter
update?
Generated using
TypeDoc
各状態の振る舞いを関数で指定