Create custom match plugin

Rename world_control

Fix package name

Attempt with main package

Go world_control debug

Go world_control debug

Added get world RPC method

Remove '_' from module

Nakama plugin testing

Nakama plugin testing

Nakama plugin testing

Try updated pipeline

Nakama plugin testing

Update pipeline

Rework plugin dir

Fix path

Fix imports

Fix imports

Load match

Load match work

Server changes

Server changes

Server changes

Changes basic upon helpful suggestions

Client side get match
This commit is contained in:
2020-08-15 19:26:02 -04:00
parent 0d9d05943c
commit 12ea66e4fc
11 changed files with 211 additions and 38 deletions

View File

@ -31,9 +31,18 @@ func login(_text=""):
# Check for error
if error:
passwordEdit.text = ""
errorLabel.add_color_override("font_color", Color.red)
errorLabel.text = error.message
display_message(error.message)
else:
errorLabel.add_color_override("font_color", Color.green)
errorLabel.text = "Logged in successfully!"
print("Logged in successfully!")
display_message("Logged in successfully!", Color.green)
display_message("Connecting to server...", Color.gray)
error = yield(ServerConnection.connect_to_server_async(), "completed")
if error:
display_message(error.message)
else:
display_message("Connected to server!", Color.green)
yield(ServerConnection.join_world_async(), "completed")
func display_message(message="", color=Color.red):
errorLabel.add_color_override("font_color", color)
errorLabel.text = message
print(message)