|
|
@@ -1,117 +1,118 @@
|
|
|
-local RoleBase = require("role.Proto").RoleBase
|
|
|
-
|
|
|
-
|
|
|
-WarOrder = {
|
|
|
- {"type", 1,"int"}, -- 1 勇士之证 2 恶魔之证 3 工会之证明 4 竞技之证
|
|
|
- {"exp",1,"int"}, -- 战令经验
|
|
|
- {"finish",64,"int"}, -- 战令已经领取idx
|
|
|
- {"unlock",1,"int"}, -- 战令是否RMB解锁
|
|
|
- {"upgradeFinish",64,"int"}, -- 高级战令已经领取idx
|
|
|
- {"isRed",1,"int"}, -- 是否有红点 0表示没有1表示有
|
|
|
-}
|
|
|
-
|
|
|
-CG_AA_DISCONNECT = {
|
|
|
- {"reason", 1, "int"},
|
|
|
- {"realReason", 1, "int"},
|
|
|
-}
|
|
|
-
|
|
|
-GC_DISCONNECT = {
|
|
|
- {"code", 1, "int"},
|
|
|
- {"msg", 1, "string"},
|
|
|
-}
|
|
|
-
|
|
|
-CG_ASK_LOGIN = {
|
|
|
- {"account", 1, "string"},
|
|
|
- {"timestamp", 1, "int"}, --登录时间戳
|
|
|
- {"authkey", 1, "string"}, --登录校验key
|
|
|
- {"lang", 1, "string"}, --多语言-语言包
|
|
|
- {"region", 1, "string"}, --多语言-区域
|
|
|
- {"ip", 1, "string"}, --登陆ip
|
|
|
- {"params", 1, "string"}, --平台信息
|
|
|
-}
|
|
|
-
|
|
|
-CG_TEST_PROTO = {
|
|
|
- {"account", 1, "string"}, -- 玩家uid
|
|
|
- {"param", 1, "string",512} --参数json
|
|
|
-}
|
|
|
-
|
|
|
-CG_ASK_DISCONNECT = {
|
|
|
-}
|
|
|
-
|
|
|
-GC_ZZ_HUMAN_INFO = {
|
|
|
- {"roleBase", 1, RoleBase},
|
|
|
- {"isFrist", 1, "int"}, -- 是否第一次登录
|
|
|
- {"identity", 1, "string"},
|
|
|
- {"bannerID", 1, "byte"},
|
|
|
- {"unionName", 1, "string"},
|
|
|
- {"unionIdentity", 1, "string"},
|
|
|
- {"unionFrame", 1, "int"},
|
|
|
- {"vipLv", 1, "byte"},
|
|
|
- {"animation", 1, "int"}, -- 立绘
|
|
|
- {"background", 1, "int"}, -- 背景
|
|
|
- {"debug", 1, "byte"}, -- 是否开发模式
|
|
|
- {"worldLv", 1, "short"}, -- 世界等级
|
|
|
- {"openDay", 1, "short"}, -- 开服天数
|
|
|
- {"guideState", 1, "byte"},
|
|
|
- {"drawCardRateList", 1, "string"}, -- 抽奖等级概率列表
|
|
|
- {"warOrder" , 4, WarOrder}, -- 战令信息
|
|
|
-}
|
|
|
-GC_ENTER_CITY = {}
|
|
|
-
|
|
|
-CG_HEART_BEAT = {}
|
|
|
-GC_HEART_BEAT = {
|
|
|
- {"timeStamp", 1, "int"}, -- 服务器时间戳
|
|
|
-}
|
|
|
-
|
|
|
-CG_PHONE_FPS = {
|
|
|
- {"fpsType", 1, "string" },
|
|
|
- {"startFps", 1, "int" },
|
|
|
- {"endFps", 1, "int" },
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-CG_HEART_BEAT_M = {
|
|
|
-}
|
|
|
-
|
|
|
-GC_NOTICE_DADIAN = {
|
|
|
- {"type", 1, "short"},-- 1支付成功 2第n天登录
|
|
|
- {"param", 1, "int"},
|
|
|
- {"param2", 1, "int"}, -- 如果type是支付则是buyid 否则是0
|
|
|
-}
|
|
|
-
|
|
|
--- 客户端上报出错
|
|
|
-CG_CLIENT_ERROR = {
|
|
|
- {"err", 1, "string"},
|
|
|
-}
|
|
|
-
|
|
|
--- 客户端上报资源加载出错
|
|
|
-CG_CLIENT_LOAD_ERROR = {
|
|
|
- {"err", 1, "string"},
|
|
|
-}
|
|
|
-
|
|
|
-LevelUpData = {
|
|
|
- {"oldLv", 1, "int"},
|
|
|
- {"newLv", 1, "int"},
|
|
|
- {"items", 4, require("bag.Proto").ItemData},
|
|
|
- {"dialog", 1, "short"}, -- 预告内容
|
|
|
- {"dialogName", 1, "string"},
|
|
|
- {"content", 1, "string"},
|
|
|
- {"noticeLv", 1, "short"},
|
|
|
- {"panelId", 1, "int"},
|
|
|
-}
|
|
|
-
|
|
|
-GC_LEVEL_UP = {
|
|
|
- {"data", 1, LevelUpData},
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-LevelGuideData = {
|
|
|
- {"id", 1, "int"},
|
|
|
- {"noticeLv", 1, "short"},
|
|
|
- {"panelId", 1, "int"},
|
|
|
- {"status", 1, "byte"},
|
|
|
- {"guideList", 20, "short"},
|
|
|
-}
|
|
|
-GC_LEVEL_GUIDE = {
|
|
|
- {"data", 20, LevelGuideData},
|
|
|
+local RoleBase = require("role.Proto").RoleBase
|
|
|
+
|
|
|
+
|
|
|
+WarOrder = {
|
|
|
+ {"type", 1,"int"}, -- 1 勇士之证 2 恶魔之证 3 工会之证明 4 竞技之证
|
|
|
+ {"exp",1,"int"}, -- 战令经验
|
|
|
+ {"finish",64,"int"}, -- 战令已经领取idx
|
|
|
+ {"unlock",1,"int"}, -- 战令是否RMB解锁
|
|
|
+ {"upgradeFinish",64,"int"}, -- 高级战令已经领取idx
|
|
|
+ {"isRed",1,"int"}, -- 是否有红点 0表示没有1表示有
|
|
|
+}
|
|
|
+
|
|
|
+CG_AA_DISCONNECT = {
|
|
|
+ {"reason", 1, "int"},
|
|
|
+ {"realReason", 1, "int"},
|
|
|
+}
|
|
|
+
|
|
|
+GC_DISCONNECT = {
|
|
|
+ {"code", 1, "int"},
|
|
|
+ {"msg", 1, "string"},
|
|
|
+}
|
|
|
+
|
|
|
+CG_ASK_LOGIN = {
|
|
|
+ {"account", 1, "string"},
|
|
|
+ {"timestamp", 1, "int"}, --登录时间戳
|
|
|
+ {"authkey", 1, "string"}, --登录校验key
|
|
|
+ {"lang", 1, "string"}, --多语言-语言包
|
|
|
+ {"region", 1, "string"}, --多语言-区域
|
|
|
+ {"ip", 1, "string"}, --登陆ip
|
|
|
+ {"params", 1, "string"}, --平台信息
|
|
|
+}
|
|
|
+
|
|
|
+CG_TEST_PROTO = {
|
|
|
+ {"account", 1, "string"}, -- 玩家uid
|
|
|
+ {"param", 1, "string",512} --参数json
|
|
|
+}
|
|
|
+
|
|
|
+CG_ASK_DISCONNECT = {
|
|
|
+}
|
|
|
+
|
|
|
+GC_ZZ_HUMAN_INFO = {
|
|
|
+ {"roleBase", 1, RoleBase},
|
|
|
+ {"isFrist", 1, "int"}, -- 是否第一次登录
|
|
|
+ {"identity", 1, "string"},
|
|
|
+ {"bannerID", 1, "byte"},
|
|
|
+ {"unionName", 1, "string"},
|
|
|
+ {"unionIdentity", 1, "string"},
|
|
|
+ {"unionFrame", 1, "int"},
|
|
|
+ {"vipLv", 1, "byte"},
|
|
|
+ {"animation", 1, "int"}, -- 立绘
|
|
|
+ {"background", 1, "int"}, -- 背景
|
|
|
+ {"debug", 1, "byte"}, -- 是否开发模式
|
|
|
+ {"worldLv", 1, "short"}, -- 世界等级
|
|
|
+ {"openDay", 1, "short"}, -- 开服天数
|
|
|
+ {"guideState", 1, "byte"},
|
|
|
+ {"drawCardRateList", 1, "string"}, -- 抽奖等级概率列表
|
|
|
+ {"warOrder" , 4, WarOrder}, -- 战令信息
|
|
|
+ {"nSpeed", 5, "short"}, -- 速度
|
|
|
+}
|
|
|
+GC_ENTER_CITY = {}
|
|
|
+
|
|
|
+CG_HEART_BEAT = {}
|
|
|
+GC_HEART_BEAT = {
|
|
|
+ {"timeStamp", 1, "int"}, -- 服务器时间戳
|
|
|
+}
|
|
|
+
|
|
|
+CG_PHONE_FPS = {
|
|
|
+ {"fpsType", 1, "string" },
|
|
|
+ {"startFps", 1, "int" },
|
|
|
+ {"endFps", 1, "int" },
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+CG_HEART_BEAT_M = {
|
|
|
+}
|
|
|
+
|
|
|
+GC_NOTICE_DADIAN = {
|
|
|
+ {"type", 1, "short"},-- 1支付成功 2第n天登录
|
|
|
+ {"param", 1, "int"},
|
|
|
+ {"param2", 1, "int"}, -- 如果type是支付则是buyid 否则是0
|
|
|
+}
|
|
|
+
|
|
|
+-- 客户端上报出错
|
|
|
+CG_CLIENT_ERROR = {
|
|
|
+ {"err", 1, "string"},
|
|
|
+}
|
|
|
+
|
|
|
+-- 客户端上报资源加载出错
|
|
|
+CG_CLIENT_LOAD_ERROR = {
|
|
|
+ {"err", 1, "string"},
|
|
|
+}
|
|
|
+
|
|
|
+LevelUpData = {
|
|
|
+ {"oldLv", 1, "int"},
|
|
|
+ {"newLv", 1, "int"},
|
|
|
+ {"items", 4, require("bag.Proto").ItemData},
|
|
|
+ {"dialog", 1, "short"}, -- 预告内容
|
|
|
+ {"dialogName", 1, "string"},
|
|
|
+ {"content", 1, "string"},
|
|
|
+ {"noticeLv", 1, "short"},
|
|
|
+ {"panelId", 1, "int"},
|
|
|
+}
|
|
|
+
|
|
|
+GC_LEVEL_UP = {
|
|
|
+ {"data", 1, LevelUpData},
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+LevelGuideData = {
|
|
|
+ {"id", 1, "int"},
|
|
|
+ {"noticeLv", 1, "short"},
|
|
|
+ {"panelId", 1, "int"},
|
|
|
+ {"status", 1, "byte"},
|
|
|
+ {"guideList", 20, "short"},
|
|
|
+}
|
|
|
+GC_LEVEL_GUIDE = {
|
|
|
+ {"data", 20, LevelGuideData},
|
|
|
}
|