miggor-StreamGraph/classes/deck/nodes/print.gd

19 lines
371 B
GDScript3
Raw Normal View History

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)