Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.ui.components
/
ReactiveComponent
Reactive
Component
data
class
ReactiveComponent
<
V
,
B
:
UIComponent
>
(
val
base
:
B
,
val
react
:
(
B
,
V
,
MacrocosmUIInstance
)
->
Unit
)
:
UIComponent
(
source
)
Members
Constructors
Reactive
Component
Link copied to clipboard
constructor
(
base
:
B
,
react
:
(
B
,
V
,
MacrocosmUIInstance
)
->
Unit
)
Functions
handle
Click
Link copied to clipboard
open
override
fun
handleClick
(
click
:
UIClickData
)
render
Link copied to clipboard
open
override
fun
render
(
inv
:
Inventory
,
ui
:
MacrocosmUI
)
send
Link copied to clipboard
fun
send
(
value
:
V
,
ui
:
MacrocosmUIInstance
)
was
Clicked
Link copied to clipboard
open
override
fun
wasClicked
(
slot
:
Int
,
dim
:
UIDimensions
)
:
Boolean
Properties
base
Link copied to clipboard
val
base
:
B
react
Link copied to clipboard
val
react
:
(
B
,
V
,
MacrocosmUIInstance
)
->
Unit