mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
18 lines
371 B
GDScript
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)
|