This commit is contained in:
2026-09-13 01:40:32 +08:00
parent f89476a737
commit 177561b78b
164 changed files with 10255 additions and 6527 deletions
@@ -76,9 +76,12 @@ public class RoomPlayerInfo
/// <summary>玩家 ID</summary>
public string userId;
/// <summary>玩家昵称</summary>
/// <summary>玩家名字</summary>
public string userName;
/// <summary>玩家编号(短ID,游戏内显示用)</summary>
public string userNumber;
/// <summary>头像 URL</summary>
public string avatar;
@@ -1,100 +1,116 @@
using Assets.MyGame.Scripts.Net.WebResponses;
using System;
using System.Collections.Generic;
namespace Assets.MyGame.Scripts.Net.WebResponses
{
/// <summary>
/// 房间进入通知(RoomJoinNotice)
/// 房间进入通知(RoomJoinNotice)—— 后端新版玩家数据
/// </summary>
[Serializable]
public class RoomJoinNotice
{
/// <summary>
/// 玩家唯一 ID
/// 玩家Id
/// </summary>
public string userId;
public string UserId { get; set; } = string.Empty;
/// <summary>
/// 玩家昵称
/// 玩家名字
/// </summary>
public string userName;
public string UserName { get; set; } = string.Empty;
/// <summary>
/// 玩家头像 URL
/// 玩家编号(短ID,游戏内显示用)
/// </summary>
public string avatar;
public string UserNumber { get; set; } = string.Empty;
/// <summary>
/// 是否红名(可能用于标识特殊玩家)
/// 玩家头像
/// </summary>
public bool isRedName;
public string Avatar { get; set; } = string.Empty;
/// <summary>
/// VIP 等级
/// 玩家是否红名
/// </summary>
public int vipLevel;
public bool IsRedName { get; set; } = false;
/// <summary>
/// 玩家卡牌等级(可能用于展示)
/// 玩家等级
/// </summary>
public int userCardLevel;
public int Level { get; set; } = 0;
/// <summary>
/// 玩家唯一客户端 ID(可能用于房间定位)
/// Vip等级
/// </summary>
public string cId;
public int VipLevel { get; set; } = 0;
/// <summary>
/// 玩家CID
/// </summary>
public string CId { get; set; } = string.Empty;
/// <summary>
/// 玩家金币
/// </summary>
public long gold;
public long Gold { get; set; } = 0;
/// <summary>
/// 玩家钻石
/// </summary>
public long diamond;
public int Diamond { get; set; } = 0;
/// <summary>
/// 玩家在房间中的位置(1~4)
/// 玩家位置
/// </summary>
public int position;
public int Position { get; set; } = 0;
/// <summary>
/// 当前使用的炮台编号
/// 炮台
/// </summary>
public string cannonId;
public string CannonId { get; set; } = string.Empty;
/// <summary>
/// 当前使用的翅膀编号
/// 翅膀
/// </summary>
public string wingsId;
public string WingsId { get; set; } = string.Empty;
/// <summary>
/// 当前使用的战神编号
/// 战神
/// </summary>
public string warGodId;
public string WarGodId { get; set; } = string.Empty;
/// <summary>
/// 当前炮倍(例如 1000、2000)
/// 炮倍
/// </summary>
public int cannonMultiple;
public int CannonMultiple { get; set; } = 1;
/// <summary>
/// 进入房间时的金币(用于统计)
/// 进场金币
/// </summary>
public long beginCoin;
public long BeginCoin { get; set; } = 0;
/// <summary>
/// 进入房间的时间戳(秒)
/// 进房后达到的最高金币
/// </summary>
public long beginTime;
public long MaxGold { get; set; } = 0;
/// <summary>
/// 玩家状态(0 正常,其他状态可扩展)
/// 进场时间
/// </summary>
public int state;
public long BeginTime { get; set; } = 0;
/// <summary>是否为机器人(后端下发)</summary>
public bool isBot;
/// <summary>
/// 状态 0 正常 1 断线中
/// </summary>
public int State { get; set; } = 0;
/// <summary>
/// 是否为机器人
/// </summary>
public bool IsBot { get; set; } = false;
/// <summary>
/// 是否挂机中
/// </summary>
public bool IsAfk { get; set; } = false;
}
}
}