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

-- 详情
CG_XIANZHI_DETAIL = {
	{"camp",            1,           "byte"}, 		-- 1-4
}

GC_XIANZHI_DETAIL = {
    {"item",      50,          ItemData},
}

-- 召唤
CG_XIANZHI_ZHAOHUAN_DO = {
	{"camp",             1,          "byte"},		-- 1-4
	{"cnt",              1,          "byte"},
    {"skip",             1,          "byte"},
}

GC_XIANZHI_ZHAOHUAN_DO = {
	{"camp",             1,          "byte"},
    {"list",      		 30,         HeroNiceNet}  -- 最大支持30个
}

-- 置换
CG_XIANZHI_ZHIHUAN_QUERY = {
	{"heroID",           1,          "int"},
	{"heroIndex",        1,          "int"},
}

GC_XIANZHI_ZHIHUAN_QUERY = {
	{"heroID",           1,          "int"},
	{"heroIndex",        1,          "int"},
	{"heroSimple",       1,          HeroSimple},
	{"heroStatic",       1,          HeroStatic},
    {"skip",             1,          "byte"},
}

CG_XIANZHI_ZHIHUAN_DO = {
	{"heroID",           1,          "int"},
	{"heroIndex",        1,          "int"},
}

GC_XIANZHI_ZHIHUAN_DO = {
	{"heroSimple",       1,          HeroSimple},
}


CG_XIANZHI_ZHIHUAN_PREVIEW = {
    {"camp",            1,           "byte"},  -- 1召唤    2置换
	{"star",            1,           "byte"},  -- 1召唤    2置换
} 

GC_XIANZHI_ZHIHUAN_PREVIEW = {
    {"heroSimple",      50,          HeroSimple}
}

CG_XIANZHI_SHOP_QUERY = {

}

XianZhiProduction= {
	{"id",             1,            "int"},
	{"price",          1,            "int"},
	{"goods",          2,             ItemData},
}

GC_XIANZHI_SHOP_QUERY={
	{"production",     100,          XianZhiProduction},
	{"currency",       2,           ItemData},
}

CG_XIANZHI_SHOP_BUY={
	{"id",             1,             "int"},
	{"count",             1,             "int"}
}

GC_XIANZHI_SHOP_BUY = {
	{"xianzhiCoin",    1,           "int"},
}