toggle menu
Simple Robot
4.8.0
common
switch theme
search in API
simbot-api
/
love.forte.simbot.component
/
ComponentInstaller
/
install
install
abstract
fun
<
COM
:
Component
,
CONF
:
Any
>
install
(
componentFactory
:
ComponentFactory
<
COM
,
CONF
>
,
configurer
:
ConfigurerFunction
<
CONF
>
)
(
source
)
注册安装一个组件类型,并为其添加对应的配置。
open
fun
<
COM
:
Component
,
CONF
:
Any
>
install
(
componentFactory
:
ComponentFactory
<
COM
,
CONF
>
)
(
source
)
注册安装一个组件类型。