using Fantasy.Entitas;
using MongoDB.Bson.Serialization.Attributes;
namespace NB.Chat;
///
/// 聊天频道实体
///
public class ChatChannel : Entity
{
///
/// 频道类型 0.地图 1.公开 2.私密
///
[BsonElement("type")] public uint ChannelType;
///
/// 频道名称
///
[BsonElement("name")] public string Name = "";
///
/// 频道密码
///
[BsonElement("pass")] public string Password = "";
///
/// 创建者
///
[BsonElement("cr")] public long Creator;
///
/// 创建时间
///
[BsonElement("ct")] public long CreateTime;
///
/// 频道地区 0,全球 非0地区 如果是地图频道则表示地图位置
///
[BsonElement("region")] public int Region;
///
/// 当前频道在线人数
///
[BsonElement("ids")] public readonly HashSet Units = new HashSet();
}