local RoleBase = require("role.Proto").RoleBase 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_ASK_DISCONNECT = { } GC_ZZ_HUMAN_INFO = { {"roleBase", 1, RoleBase}, {"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"}, } 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}, }