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

tBoxInfo = 
{
    {"nType",           1,          "byte"},
    {"tItemData",       1,          ItemData},
}

-- 请求宝箱界面信息
CG_TEEASURECHEST_QUERY = 
{}

-- 请求宝箱界面信息回包
GC_TEEASURECHEST_QUERY = {
    {"nNowPoint",       1,          "int"},
    {"nNextPoint",      1,          "int"},
    {"nID",             1,          "int"},         -- 积分奖励ID
    {"nState",          1,          "int"},         -- 积分奖励状态
    {"nAuto",           1,          "byte"},        -- 能否自动打开 0 否 1 可
    {"tPointPirze",     1,          ItemData},      -- 积分奖励礼包信息
    {"tList",           8,          tBoxInfo},
    {"nOneTouch",       1,          "byte"},        -- 能否一键开启 0 否 1 可
}

-- 请求宝箱内奖励信息
CG_TEEASURECHEST_PRIZE_QUERY = 
{
    {"nBoxType",        1,           "byte"}
}

-- 请求宝箱内奖励信息回包
GC_TEEASURECHEST_PRIZE_QUERY =
{
    {"tItemData",       10,          ItemData},
}

-- 请求打开宝箱
CG_TEEASURECHEST_OPEN = 
{
    {"nBoxType",        1,           "byte"},
    {"nNum",            1,           "int"},
}

-- 请求自动打开宝箱
CG_TEEASURECHEST_AUTO_OPEN = 
{
    {"nBoxType",        1,           "byte"}
}

-- 请求领取积分奖励
CG_TEEASURECHEST_GET_POINT_PRIZE = 
{
    {"nID",             1,            "int"}
}


-- 请求一键开启宝箱
CG_TEEASURECHEST_ONETOUH_OPEN =
{

}

-- 请求所有宝箱数量
CG_GET_ALL_GJBOX_NUM ={

}

GC_GET_ALL_GJBOX_NUM =
{
    {"nAllNum",     1,      "int"}
}