using System.ComponentModel; using System.Runtime.InteropServices; namespace GameMessage { public static partial class MessageCode { #region Common 0000 - 9999 /// /// 注册会话请求 /// public const int RegisterSessionRequest = 1; /// /// 注册会话响应 /// public const int RegisterSessionResponse = 2; /// /// 更新会话过期时间 /// public const int UpdateSessionExpireTime = 3; /// /// 获取活动道具数据请求 /// public const int ActivityPropDataGetRequest = 4; /// /// 获取活动道具数据响应 /// public const int ActivityPropDataGetResponse = 5; /// /// 活动道具数据变更数据推送 /// public const int ActivityPropDataChange = 6; /// /// 连接请求 /// public const int ConnectSYN = 7; /// /// 连接响应 /// public const int ConnectACK = 8; /// /// 连接断开请求 /// public const int ConnectFin = 9; //public const int ConnectFinAck = 10; /// /// 路由心跳请求 /// public const int RouterHeartRequest = 11; /// /// 路由心跳响应 /// public const int RouterHeartResponse = 12; /// /// 链接验证码 /// public const int ConnectAuthCode = 13; /// /// 游戏测试包 /// public const int GamePackTestRequest = 14; /// /// 游戏测试响应包 /// public const int GamePackTestResponse = 15; /// /// 服务器断开包 /// public const int ServerFin = 16; /// /// 游戏主动断开玩家 /// public const int GameFinPlayer = 20; /// /// 提示码 /// public const int TipCode = 100; #endregion Common } }