local HeroSimple = require("hero.Proto").HeroSimple

CardInfo = {
    {"heroInfo",1,HeroSimple},      -- 英雄信息
    {"price",1,"byte"},             -- 价值
    {"index",1,"byte"},             -- 在手牌中或卡池中的位置
}


CG_ZHANBU_QUERY = {}

GC_ZHANBU_QUERY = {
    {"heroPool",5,CardInfo},    -- 卡池的牌
    {"hand",7,CardInfo},        -- 手牌
    {"cardRate",3,"double"},      -- 卡的概率 1 R 2 SR 3 SSR
    {"lv",1,"byte"},            -- 卡池等级
    {"money",1,"int"},         -- 拥有道具数
    {"moneyMax",1,"int"},      -- 最大道具数
    {"moneyCost",1,"byte"},     -- 刷新花费道具
    {"nextRecover",1,"int"},    -- 下一次回复剩余时间
    {"recoverTs",1,"int"},     -- 回复时间
    {"isGuide",1,"byte"},      -- 是否新手引导 1是
    {"isLock",3,"byte"},        -- 5~7位置的解锁状态，1-锁定 0-解锁
    {"hasRed",1,"byte"},        -- 是否设置了心仪英雄
}

CG_ZHANBU_BUY_CARD = {
    {"index",1,"byte"},         -- 位置
    {"heroID",1,"int"},        -- 英雄id
}

GC_ZHANBU_BUY_CARD = {
    {"index",1,"byte"},         -- 手牌中的位置
}

CG_ZHANBU_CHANGE_POS = {
    {"newPos",1,"string"},        -- 
}

CG_ZHANBU_REFRESH_POOL = {
}

CG_ZHANBU_SELL_CARD = {
    {"index",1,"byte"},         -- 位置
    {"heroID",1,"int"},        -- 英雄id
}

GC_ZHANBU_SELL_CARD = {
}

GC_ZHANBU_LVUP = {
    {"cardRate",3,"double"},      -- 卡的概率 1 R 2 SR 3 SSR
    {"lv",1,"byte"},            -- 卡池等级
}

CG_ZHANBU_HEART_HERO_QUERY = {
}

ZHANBU_HERO_INFO = {
    {"heroId",    1,   "int"},      -- 英雄头像及id
    {"heroCamp",  1,   "byte"},      -- 英雄种族
    {"heroName",  1,   "string"},   -- 英雄名字
}

GC_ZHANBU_HEART_HERO_QUERY = {
    {"heroInfo",    3,      ZHANBU_HERO_INFO},      -- 英雄头像及id
    {"heroList",    20,    ZHANBU_HERO_INFO},      -- 图鉴SSR英雄列表
    {"isEnd",       1,     "byte"},            -- 是否发完数据, 0-没有, 1-发完
    {"isStart",     1,     "byte"},            -- 是否是第一段数据, 0-不是，1-是
}

CG_ZHANBU_HEART_HERO = {
    {"heroList",1,"string"},        -- 心仪英雄列表 heroID|heroID|heroID
}