using System.ComponentModel;
using System.Runtime.InteropServices;

namespace GameMessage
{
    public static partial class MessageCode
    {
        #region Common 0000 - 9999

        /// <summary>
        /// 注册会话请求
        /// </summary>
        public const int RegisterSessionRequest = 1;

        /// <summary>
        /// 注册会话响应
        /// </summary>
        public const int RegisterSessionResponse = 2;

        /// <summary>
        /// 更新会话过期时间
        /// </summary>
        public const int UpdateSessionExpireTime = 3;

        /// <summary>
        /// 获取活动道具数据请求
        /// </summary>
        public const int ActivityPropDataGetRequest = 4;

        /// <summary>
        /// 获取活动道具数据响应
        /// </summary>
        public const int ActivityPropDataGetResponse = 5;

        /// <summary>
        /// 活动道具数据变更数据推送
        /// </summary>
        public const int ActivityPropDataChange = 6;

        /// <summary>
        /// 连接请求
        /// </summary>
        public const int ConnectSYN = 7;

        /// <summary>
        /// 连接响应
        /// </summary>
        public const int ConnectACK = 8;

        /// <summary>
        /// 连接断开请求
        /// </summary>
        public const int ConnectFin = 9;

        //public const int ConnectFinAck = 10;
        
        /// <summary>
        /// 路由心跳请求
        /// </summary>
        public const int RouterHeartRequest = 11;

        /// <summary>
        /// 路由心跳响应
        /// </summary>
        public const int RouterHeartResponse = 12;

        /// <summary>
        /// 链接验证码
        /// </summary>
        public const int ConnectAuthCode = 13;

        /// <summary>
        /// 游戏测试包
        /// </summary>
        public const int GamePackTestRequest = 14;

        /// <summary>
        /// 游戏测试响应包
        /// </summary>
        public const int GamePackTestResponse = 15;
        
        /// <summary>
        /// 服务器断开包 
        /// </summary>
        public const int ServerFin = 16;
        
        /// <summary>
        /// 游戏主动断开玩家
        /// </summary>
        public const int GameFinPlayer = 20;
        
        /// <summary>
        /// 提示码
        /// </summary>
        public const int TipCode = 100;
        
        #endregion Common
    }
}