This commit is contained in:
Chris Bell 2024-12-15 00:32:40 -06:00
parent 1a78b6abfd
commit a59c119de6

View File

@ -18,6 +18,8 @@ var steam_username: String = ""
var avatar_texture_cache: Dictionary = {}
var host_id: int = 0
var uuid_counter: int = 0
var node_map: Dictionary = {}
signal lobby_created(lobby_id: int)
@ -316,9 +318,11 @@ func read_p2p_packet() -> void:
#print("Packet: %s" % readable_data)
func register_node(node: Node) -> String:
var uuid = generate_uuid()
node_map[uuid] = node
uuid_counter += 1
return uuid