-- 圣器协议
local UpStarCond = require("hero.Proto").UpStarCond
local Attr = require("role.Proto").Attr
local ItemData = require("bag.Proto").ItemData

-- 查询
CG_RELIC_QUERY = {
    {"camp",1,"byte"},          -- 查看此阵营圣器信息   首次进入传1
}
-- 解锁
GC_RELIC_UNLOCK_QUERY_RETURN = {
    {"lockMsg",5,"byte"},             -- 对应阵营解锁信息  0 未解锁 1 已解锁 2 可解锁
    {"unlockNeed",2,UpStarCond},      -- 解锁材料 长度为0 即为不要解锁
}

CG_RELIC_UNLOCK_UNLOCK = {
    {"camp",1,"byte"},          -- 解锁某阵容
	{"inputIDList",		2,		"int"},   -- 觉醒耗费的英雄ID
	{"inputIndexList",	2,		"short"}, -- 觉醒耗费的英雄index
}

-- 解锁返回
GC_RELIC_UNLOCK_RETURN = {
    {"camp",1,"byte"},          -- 解锁某阵容
}

-- 升级
GC_RELIC_LVUP_QUERY_RETURN = {
    {"lockMsg",5,"byte"},             -- 对应阵营解锁信息  0 未解锁 1 已解锁 2 可解锁
    {"lv",1,"byte"},                  -- 等级
    {"exp",1,"int"},                  -- 当前经验
    {"maxExp",1,"int"},               -- 最大经验
    {"attr",10,Attr},                 -- 属性
    {"item",5,ItemData},              -- 升级所需道具
    {"jinbi",1,"int"},                -- 升级所需道具
}

CG_RELIC_LVUP_DO = {
    {"camp",1,"byte"},          -- 解锁某阵容
}

-- 进阶
CG_RELIC_JINJIE_QUERY = {
    {"camp",1,"byte"},          -- 阵容
}
GC_RELIC_JINJIE_QUERY = {
    {"quality",1,"byte"},             -- 品阶
    {"tupoLv",1,"byte"},              -- 突破等级
    {"attr",10,Attr},                 -- 属性
    {"item",5,ItemData},              -- 升级所需道具
    {"jinbi",1,"int"},                -- 升级所需道具
    {"unlockNeed",2,UpStarCond},      -- 所需材料
    {"needLv",1,"byte"},              -- 进阶所需等级
    {"canJinjie",1,"byte"},           -- 是否可进阶
    {"canTupo",1,"byte"},             -- 是否可突破   0 已达到最大等级  1 阶数不够 2 材料不足  3 可以突破
}

CG_RELIC_JINJIE_YULAN_QUERY = {
    {"camp",1,"byte"},          -- 阵容
}

RelicJinjieYulan = {
    {"quality",1,"byte"},             -- 品阶
    {"desc",1,"string"},              -- 描述
    {"attr",10,Attr},                 -- 属性
}

GC_RELIC_JINJIE_YULAN_QUERY = {
    {"yulan",20,RelicJinjieYulan}
}
-- 突破
CG_RELIC_TUPO_DO = {
    {"camp",1,"byte"},          -- 突破某阵容
}

GC_RELIC_TUPO_RETURN = {
    {"befAttr",5,Attr},
    {"aftAttr",5,Attr},
    {"lv",1,"byte"},
    {"camp",1,"byte"},
}