/*
 * 由SharpDevelop创建。
 * 用户： Administrator
 * 日期: 2018-09-18
 * 时间: 13:38
 * 
 * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
 */
using System;
using GameData;

namespace Server.Pack
{
    /// <summary>
    /// 包裹协议常量  负数是全服务通用内部消息   模块号*10000+协议号
    /// </summary>
    public class ServerPackAgreement : GamePackAgreement
    {
        /// <summary>
        /// 命令
        /// </summary>
        public const int command = -1;

        /// <summary>
        /// 节点心跳
        /// </summary>
        public const int nodeHeart = -2;

        /// <summary>
        /// 开启就节点
        /// </summary>
        public const int openNode = -3;

        /// <summary>
        /// 关闭节点
        /// </summary>
        public const int closeNode = -4;

        /// <summary>
        /// 游戏配置包
        /// </summary>
        public const int gameconfigs = -5;

        /// <summary>
        /// 排队配置包
        /// </summary>
        public const int queueconfigs = -6;

        /// <summary>
        /// 注册game
        /// </summary>
        public const int registeredGame = -7;

        /// <summary>
        /// 主管理器更换通知
        /// </summary>
        public const int mainManagerpack = -8;

        ///// <summary>
        ///// Rpc调用
        ///// </summary>
        ////public const int RpcCall = -9;

        ///// <summary>
        ///// Rpc回调结果
        ///// </summary>
        ////public const int RpcResult = -10;

        /// <summary>
        /// 设置玩家的Socket
        /// </summary>
        public const int SetSocketUtil = -11;

        /// <summary>
        /// 设置游戏标签 包
        /// </summary>
        public const int SetGameTag = -12;

        /// <summary>
        /// 解散朋友房包
        /// </summary>
        public const int disbank = -13;

        /// <summary>
        /// 处理玩家之间的消息通信  -内部通信
        /// </summary>
        public const int _domessage = -14;

        /// <summary>
        ///  socket信息发送给配置模块存储
        /// </summary>
        public const int SendSocketConfig = -15;

        /// <summary>
        /// 玩家的数据变化
        /// </summary>
        public const int PlayerMemChange = -16;

        /// <summary>
        /// 竞技比赛数据变化包
        /// </summary>
        public const int ClubDataChange = -17;

        /// <summary>
        /// 竞技比赛战绩
        /// </summary>
        public const int ClubFightRecord = -19;

        /// <summary>
        /// 配置包
        /// </summary>
        public const int ConfigPack = -20;

        /// <summary>
        /// 获取配置包
        /// </summary>
        public const int GetConfigPack = -21;

        /// <summary>
        /// ping
        /// </summary>
        public const int Ping = -22;

        /// <summary>
        /// 信息回包
        /// </summary>
        public const int Pong = -23;

        /// <summary>
        /// 模块死亡信号 - 自身检测到的死亡
        /// </summary>
        public const int ModuleDie = -24;

        /// <summary>
        /// 模块测试包
        /// </summary>
        public const int PackTest = -25;

        /// <summary>
        /// 值守服务远程命令
        /// </summary>
        public const int WatchDogRemoteCommand = -26;

        /// <summary>
        /// 请求当前活动的服务模块列表
        /// </summary>
        public const int GetActiveServerListReq = -27;

        /// <summary>
        /// 回应当前活动的服务模块列表
        /// </summary>
        public const int GetActiveServerListResp = -28;

        /// <summary>
        /// 竞技比赛玩法玩家人数变化包 过时的
        /// </summary>
        public const int ClubPlayWayPlChange = -29;

        /// <summary>
        /// 断开某个人的链接
        /// </summary>
        public const int DisConnectionPl = -30;

        /// <summary>
        /// 回报在线玩家数据
        /// </summary>
        public const int ReportPlayerOnLineDataReq = -31;

        /// <summary>
        /// 回报在线玩家数据
        /// </summary>
        public const int ReportPlayerOnLineDataResp = -32;

        /// <summary>
        /// 关闭自身
        /// </summary>
        public const int KillMe = -33;

        /// <summary>
        ///缓存变化
        /// </summary>
        public const int CacheChange = -34;

        /// <summary>
        /// 有玩家断开链接
        /// </summary>
        public const int DisConnection = -35;

        /// <summary>
        /// 禁止开战
        /// </summary>
        public const int NoStartWar = -36;

        /// <summary>
        /// 发送每小局结算信息给俱乐部
        /// </summary>
        public const int SendBureaToClub = -37;

        /// <summary>
        /// 
        /// </summary>
        public const int WatchDogAddTask = -40;

        /// <summary>
        /// 推广员增加扣除俱乐部房卡
        /// </summary>
        public const int ChannelUserGetCardCount = -41;

        /// <summary>
        /// 推广员获取俱乐部房卡数量
        /// </summary>
        public const int ChannelUserAddOrSubCard = -42;

        /// <summary>
        /// 日志收集归档
        /// </summary>
        public const int LoggingCollect = -50;

        /// <summary>
        /// 获取回放包，RGC。直播用
        /// </summary>
        public const int GetMatchFightData=-51;

        /// <summary>
        /// 获取定局比赛数据，用于回放
        /// </summary>
        public const int GetFixedMatchData = -52;

        /// <summary>
        /// 给用户加资产信息---目的只是为了同步服务器的内存
        /// </summary>
        public const int AddPlayerZiChanNum = -53;

        /// <summary>
        /// 处理充值订单
        /// </summary>
        public const int RechargeOrders = -54;

        /// <summary>
        /// 更新玩家活跃度和贡献度
        /// </summary>
        public const int UpdateUserLiveness = -55;

        /// <summary>
        /// 新增比赛配置
        /// </summary>
        public const int AddRaceConfig = -56;

        /// <summary>
        /// 加入桌子结果
        /// </summary>
        public const int JoinDeskResult = -57;

        /// <summary>
        /// 第三方平台更改房卡
        /// </summary>
        public const int ChannelPayCard = -58;
        
        /// <summary>
        /// 支付通知 （参数：PayOrderDBEntity）
        /// </summary>
        public const int NotifyPaySuccess = -59;
        
        /// <summary>
        /// 玩家资产变更（参数：PlayerPropertyPack）
        /// </summary>
        public const int NotifyPlayerPropertyChange = -60;
    }
}
