Ship mostly works #10

Merged
chrisbell merged 60 commits from feature/ship-syncing into develop 2024-12-29 04:35:51 +00:00
Showing only changes of commit 7f05c190ce - Show all commits

View File

@ -145,7 +145,7 @@ func receive_global_rotation_update(value: Vector3):
func _on_property_update(node_id: String, property_name: String, value: Variant) -> void:
if node_id == network_uuid:
if NetworkManager.node_map.has(node_id) and node_id == network_uuid:
if property_name == "global_position":
receive_global_position_update(value)
elif property_name == "global_rotation":
@ -153,5 +153,3 @@ func _on_property_update(node_id: String, property_name: String, value: Variant)
else:
var node = NetworkManager.node_map[node_id]
node.set(property_name, value)
else:
GameConsole.log_warning("Received a property update for a node that doesn't match the network UUID of this ship.")