mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
15 lines
479 B
GDScript3
15 lines
479 B
GDScript3
|
# (c) 2023-present Eroax
|
||
|
# (c) 2023-present Yagich
|
||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||
|
extends RPCScope
|
||
|
|
||
|
|
||
|
func _init() -> void:
|
||
|
name = "node"
|
||
|
|
||
|
RPCSignalLayer.signals.node_position_updated.connect(_on_node_position_updated)
|
||
|
|
||
|
|
||
|
func _on_node_position_updated(deck_id: String, node_id: String, position: Dictionary) -> void:
|
||
|
event.emit(create_event("position_updated", position, {"deck_id": deck_id, "node_id": node_id}))
|