记录副本更新ui

This commit is contained in:
2026-02-09 10:44:38 +08:00
parent 3de1afe838
commit 5269bc7e6a
176 changed files with 615126 additions and 638503 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ namespace Assets.MyGame.Scripts.Net
public static class APIManager
{
public static Dictionary<APIType, string> dic_API = new Dictionary<APIType, string>();
public const string baseURL = "http://524game.32.hzgqapp.com";
public const string baseURL = "http://game5241.wzaxr.top";
static string token;
static APIManager()
@@ -32,6 +32,12 @@ namespace Assets.MyGame.Scripts.Net.API.GameConfig_SubClass
/// 场内最大数量
/// </summary>
public int maxCount;
/// <summary>
/// 阵型类型编号
/// </summary>
public string arrayNumber;
public int times;
}
@@ -29,5 +29,9 @@ namespace Assets.MyGame.Scripts.Net.WebResponses
/// 鱼的唯一实例 ID
/// </summary>
public string fishId;
public int timespan;
public int killtime;
public string msg;
}
}
@@ -21,16 +21,16 @@ namespace Assets.MyGame.Scripts.Net
private readonly Dictionary<SocketType, WebSocket> sockets = new();
private readonly Dictionary<SocketType, string> socketPaths = new();
private const string baseUrl = "ws://524game.32.hzgqapp.com/";
private const string baseUrl = "ws://game5241.wzaxr.top";
protected override void Awake()
{
base.Awake();
socketPaths[SocketType.game] = "gamehub";
socketPaths[SocketType.room] = "fishingroomhub";
socketPaths[SocketType.login] = "loginhub";
socketPaths[SocketType.chess] = "chesshub";
socketPaths[SocketType.game] = "/gamehub";
socketPaths[SocketType.room] = "/fishingroomhub";
socketPaths[SocketType.login] = "/loginhub";
socketPaths[SocketType.chess] = "/chesshub";
}
/// <summary>
@@ -40,10 +40,11 @@ namespace Assets.MyGame.Scripts.Net
WebSocketReponseList.RoomInfo(msg);
break;
case "RoomKillNotice":
CreateFishManager.Instance.DesFish(msg);
WebSocketReponseList.RoomKillNotice(msg);
break;
case "SyncPlayerGold":
WebSocketReponseList.SyncPlayerGold(msg);
break;
//case "GetRoomListResult":
// break;
default:
break;
}
@@ -75,6 +75,10 @@ namespace Assets.MyGame.Scripts.Net
{
CreateFishManager.Instance.DesFish(msg);
}
public static void SyncPlayerGold(string msg)
{
UIManager.Instance.Get<GameMainPanel_XJMH>(UIPanel.MainGamePanelXJMH).currSitData.goldNum = int.Parse(msg);
}
}
}