miggor-StreamGraph/classes/deck/nodes/print.gd
2023-06-10 20:13:16 +03:00

18 lines
371 B
GDScript

extends DeckNode
func _init() -> void:
add_input_port(
Deck.Types.STRING,
"Input",
"field"
)
name = "Print"
func _receive(_to_port: int, data: DeckType, extra_data: Array = []) -> void:
# we only have one port, so we can skip checking which port we received on
var data_to_print = data.get_value()
print(data_to_print)
print("extra data: ", extra_data)