Integrate Nakama managers and enhance powerup system

Added Nakama and related manager scripts to autoload in project.godot and updated input mappings. Improved powerup_manager.gd with new methods and aliases for compatibility and gameplay rewards. Refactored ui_manager.gd to better initialize UI elements and removed unused code. Added playerboard_is_empty to player.gd for board state checks. Minor formatting changes in Nakama C# utility files for consistency.
This commit is contained in:
Yogi Wiguna
2026-01-29 15:45:06 +08:00
parent e66ba7542c
commit d9025128e0
8 changed files with 189 additions and 84 deletions
@@ -21,11 +21,11 @@ using Godot;
namespace Nakama {
/// <summary>
/// An Http adapter which uses Godot's HttpRequest node.
/// <summary>
/// An Http adapter which uses Godot's HttpRequest node.
/// </summary>
/// <remarks>
/// Note Content-Type header is always set as 'application/json'.
/// Note Content-Type header is always set as 'application/json'.
/// </remarks>
public partial class GodotHttpAdapter : Node, IHttpAdapter {
@@ -73,7 +73,7 @@ namespace Nakama {
AddChild(req);
req.Request(uri.ToString(), headers_array, godot_method, body_string);
Logger?.InfoFormat("Send: method='{0}', uri='{1}', body='{2}'", method, uri, body_string);
Logger?.InfoFormat("Send: method='{0}', uri='{1}', body='{2}'", method, uri, body_string);
Variant[] resultObjects = await ToSignal(req, "request_completed");
@@ -83,7 +83,7 @@ namespace Nakama {
req.QueueFree();
Logger?.InfoFormat("Received: status={0}, contents='{1}'", response_code, response_body);
Logger?.InfoFormat("Received: status={0}, contents='{1}'", response_code, response_body);
if (result == HttpRequest.Result.Success && response_code >= 200 && response_code <= 299) {
return response_body;