miggor-StreamGraph/classes/deck/port.gd

18 lines
338 B
GDScript3
Raw Normal View History

class_name Port
var type: Deck.Types
var label: String
var descriptor: String
2023-06-10 20:23:57 +02:00
var value_callback: Callable
2023-06-10 20:23:57 +02:00
func _init(
p_type: Deck.Types,
p_label: String,
p_descriptor: String = "",
p_value_callback: Callable = Callable()) -> void:
type = p_type
label = p_label
descriptor = p_descriptor
2023-06-10 20:23:57 +02:00
value_callback = p_value_callback