GitHub
Preparing search index...
The search index is not available
Triangle.js Docs
Triangle.js Docs
src
Utils
BotWrapper
Class BotWrapper<T>
Type Parameters
T
extends
CustomMessageData
=
CustomMessageData
Index
Constructors
constructor
Properties
adapter
config
needs
New
Move
next
Frame
Methods
init
stop
tick
frames
next
Frame
Constructors
constructor
new
Bot
Wrapper
<
T
>
(
adapter
,
config
)
:
BotWrapper
<
T
>
Type Parameters
T
extends
CustomMessageData
=
CustomMessageData
Parameters
adapter
:
Adapter
<
T
>
config
:
BotWrapperConfig
Returns
BotWrapper
<
T
>
Properties
adapter
adapter
:
Adapter
<
T
>
config
config
:
BotWrapperConfig
needs
New
Move
needs
New
Move
:
boolean
= false
next
Frame
next
Frame
:
number
Methods
init
init
(
engine
,
config
?
)
:
Promise
<
void
>
Parameters
engine
:
Engine
Optional
config
:
T
[
"config"
]
Returns
Promise
<
void
>
stop
stop
(
)
:
void
Returns
void
tick
tick
(
engine
,
events
,
data
?
)
:
Promise
<
Types
.
Game
.
Tick
.
Keypress
[]
>
Parameters
engine
:
Engine
events
:
Event
[]
Optional
data
:
Partial
<
Pick
<
T
,
"state"
|
"play"
>
>
Returns
Promise
<
Types
.
Game
.
Tick
.
Keypress
[]
>
Static
frames
frames
(
engine
,
keys
)
:
Types
.
Game
.
Tick
.
Keypress
[]
Parameters
engine
:
Engine
keys
:
AdapterKey
[]
Returns
Types
.
Game
.
Tick
.
Keypress
[]
Static
next
Frame
next
Frame
(
engine
,
target
)
:
number
Parameters
engine
:
Engine
target
:
number
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
adapter
config
needs
New
Move
next
Frame
Methods
init
stop
tick
frames
next
Frame
GitHub
Triangle.js Docs
Loading...