29 lines
986 B
C#
29 lines
986 B
C#
using DotRecast.Detour.Crowd;
|
|
using System.Collections.Concurrent;
|
|
using System.Net.WebSockets;
|
|
using XNet.Business.Dto;
|
|
|
|
namespace XNet.Business.Entity
|
|
{
|
|
public class PlayerStateInfo
|
|
{
|
|
public WebSocket WebSocket { get; set; } = null!;
|
|
public ConcurrentDictionary<string, bool> RoomIds { get; set; } = new();
|
|
public string FirstRoomId { get => RoomIds.Keys.FirstOrDefault()!; set => RoomIds.TryAdd(value, true); }
|
|
public string HeadImageUrl { get; set; } = string.Empty;
|
|
public string NickName { get; set; } = string.Empty;
|
|
public string DeviceColor { get; set; } = "#FFFFFF";
|
|
public string PlayerId { get; set; } = string.Empty;
|
|
public bool IsAI { get; set; } = false;
|
|
|
|
public byte SetIdx { get; set; }
|
|
|
|
public bool IsCanControl { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 路径导航索引
|
|
/// </summary>
|
|
public DtCrowdAgent Agent { get; set; } = null!;
|
|
}
|
|
}
|