feat: overhaul the nakama user management, leaderboard, prep for 2.1
This commit is contained in:
@@ -2,7 +2,7 @@ extends Node
|
||||
|
||||
# Standard Nakama Configuration
|
||||
var nakama_server_key = "defaultkey"
|
||||
var nakama_host = "localhost"
|
||||
var nakama_host = "tektondash.vps.webdock.cloud"
|
||||
var nakama_port = 7350
|
||||
var nakama_scheme = "http"
|
||||
|
||||
@@ -74,7 +74,10 @@ func set_server(host: String, port: int = 7350):
|
||||
nakama_scheme = "http"
|
||||
nakama_port = explicit_port if explicit_port != -1 else port
|
||||
|
||||
_init_client()
|
||||
# Only recreate the client if there is no active session.
|
||||
# If we're already connected, just store the new settings for the next connect.
|
||||
if not session:
|
||||
_init_client()
|
||||
print("[NakamaManager] Server updated to: ", nakama_scheme, "://", nakama_host, ":", nakama_port)
|
||||
|
||||
func _process(_delta):
|
||||
|
||||
Reference in New Issue
Block a user