﻿namespace Assets.Message
{
    /// <summary>
    /// 表示一条消息
    /// </summary>
    internal struct Message
    {
        /// <summary>
        /// 消息正文
        /// </summary>
        public readonly string Content;

        /// <summary>
        /// 表示消息类型的Mask
        /// </summary>
        public readonly int Mask;

        /// <summary>
        /// 获得一条新的消息
        /// </summary>
        /// <param name="content">消息正文</param>
        /// <param name="mask">表示消息类型的Mask</param>
        public Message(string content, int mask)
        {
            Content = content;
            Mask = mask;
        }
    }
}
