numbers
This commit is contained in:
parent
1a78b6abfd
commit
a59c119de6
@ -18,6 +18,8 @@ var steam_username: String = ""
|
|||||||
var avatar_texture_cache: Dictionary = {}
|
var avatar_texture_cache: Dictionary = {}
|
||||||
var host_id: int = 0
|
var host_id: int = 0
|
||||||
|
|
||||||
|
var uuid_counter: int = 0
|
||||||
|
|
||||||
var node_map: Dictionary = {}
|
var node_map: Dictionary = {}
|
||||||
|
|
||||||
signal lobby_created(lobby_id: int)
|
signal lobby_created(lobby_id: int)
|
||||||
@ -316,9 +318,11 @@ func read_p2p_packet() -> void:
|
|||||||
#print("Packet: %s" % readable_data)
|
#print("Packet: %s" % readable_data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func register_node(node: Node) -> String:
|
func register_node(node: Node) -> String:
|
||||||
var uuid = generate_uuid()
|
var uuid = generate_uuid()
|
||||||
node_map[uuid] = node
|
uuid_counter += 1
|
||||||
return uuid
|
return uuid
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user