Forgot to actually create the sync_to_peer function in networkmanager

This commit is contained in:
Chris Bell 2024-12-28 16:23:10 -06:00
parent 501085bf57
commit a6ba12bd76

View File

@ -394,3 +394,6 @@ func sync_property(node_id: String, property_name: String, value: Variant):
send_p2p_packet(0, packet_data)
func sync_property_to_peer(node_id: String, property_name: String, value: Variant, target_peer: int):
var packet_data = {"message":"property_update", "node_id": node_id, "property_name": property_name, "value": value}
send_p2p_packet(target_peer, packet_data)