clik-engine API
GitHub
Preparing search index...
PolicyFn
Type Alias PolicyFn
PolicyFn
:
(
ctx
:
ScenarioContext
,
)
=>
Record
<
string
,
boolean
>
|
Promise
<
Record
<
string
,
boolean
>
>
A policy function called by
PolicyStrategy
each frame to choose actions. May be sync or async.
Type Declaration
(
ctx
:
ScenarioContext
,
)
:
Record
<
string
,
boolean
>
|
Promise
<
Record
<
string
,
boolean
>
>
Parameters
ctx
:
ScenarioContext
Returns
Record
<
string
,
boolean
>
|
Promise
<
Record
<
string
,
boolean
>
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
GitHub
clik-engine API
Loading...
A policy function called by PolicyStrategy each frame to choose actions. May be sync or async.