using Fantasy.Entitas;
using NB.Map;

namespace NB.Map;

/// <summary>
/// 地图房间
/// </summary>
public class MapRoom : Entity
{
    /// <summary>
    /// 房间序号id
    /// </summary>
    public int RoomId;
    
    /// <summary>
    /// 房间代码
    /// </summary>
    public string Code = string.Empty;
    
    /// <summary>
    /// 房间密码
    /// </summary>
    public string Password = string.Empty;

    /// <summary>
    /// 房间玩家
    /// </summary>
    public Dictionary<long, MapUnit> Units = new Dictionary<long, MapUnit>();

    /// <summary>
    /// 房主
    /// </summary>
    public long Owner;

    /// <summary>
    /// 创建时间
    /// </summary>
    public long CreateTime;

    /// <summary>
    /// 房间地图
    /// </summary>
    public int Map;
}