Triangle.js Docs
GitHub
Preparing search index...
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
BotWrapper
<
T
extends
CustomMessageData
=
CustomMessageData
>
(
adapter
:
Adapter
<
T
>
,
config
:
BotWrapperConfig
,
)
:
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
needsNewMove
:
boolean
= false
next
Frame
nextFrame
:
number
Methods
init
init
(
engine
:
Engine
.
Engine
,
config
?:
T
[
"config"
]
)
:
Promise
<
void
>
Parameters
engine
:
Engine
.
Engine
Optional
config
:
T
[
"config"
]
Returns
Promise
<
void
>
stop
stop
()
:
void
Returns
void
tick
tick
(
engine
:
Engine
.
Engine
,
events
:
Event
[]
,
data
?:
Partial
<
Pick
<
T
,
"state"
|
"play"
>
>
,
)
:
Promise
<
Types
.
Game
.
Tick
.
Keypress
[]
>
Parameters
engine
:
Engine
.
Engine
events
:
Event
[]
Optional
data
:
Partial
<
Pick
<
T
,
"state"
|
"play"
>
>
Returns
Promise
<
Types
.
Game
.
Tick
.
Keypress
[]
>
Static
frames
frames
(
engine
:
Engine
.
Engine
,
keys
:
AdapterKey
[]
)
:
Types
.
Game
.
Tick
.
Keypress
[]
Parameters
engine
:
Engine
.
Engine
keys
:
AdapterKey
[]
Returns
Types
.
Game
.
Tick
.
Keypress
[]
Static
next
Frame
nextFrame
(
engine
:
Engine
.
Engine
,
target
:
number
)
:
number
Parameters
engine
:
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...