local HeroSimple = require("hero.Proto").HeroSimple
local ItemData = require("bag.Proto").ItemData
local CombatFinishData = require("combat.Proto").CombatFinishData
local Attr = require("role.Proto").Attr


LostNode = {
    { "id", 1, "int" },-- id
    { "name", 1, "string" },-- 名称
    { "type", 1, "byte" },-- 图标
    { "desc", 1, "string" },-- 描述
    { "x", 1, "byte" },-- id
    { "y", 1, "byte" },-- id
    { "body", 1, "int" },-- id
}

LostHero = {
    { "uuid", 1, "string" },
    { "hp", 1, "int" },
    { "hpMax", 1, "int" },
}

LostTree = {
    { "id", 1, "byte" },
    { "icon", 1, "int" },
    { "name", 1, "string" },
    { "attr", 5, Attr },-- 攻击,血量,护甲
}

LostBuff = {
    { "name", 1, "string" },-- 
    { "attr", 1, Attr },  -- 攻击,血量,护甲 
}

LostShop = {
    { "id", 1, "byte" },
    { "item", 1, ItemData },
    { "needItem", 1, ItemData },
    { "discount", 1, "byte" },
}

-- 查询
CG_LOST_TEMPLE_QUERY = { }
GC_LOST_TEMPLE_QUERY = {
    { "list", 20, LostNode },
    { "playerX", 1, "byte" },
    { "playerY", 1, "byte" },
    { "layer", 1, "byte" },
    { "leftTime", 1, "int"},-- 活动剩余时间
}

GC_LOST_TEMPLE_CLOSE = {
}

-- 点击
CG_LOST_TEMPLE_PUT = {
    { "op", 1, "byte" },-- 0 查询  1 确认操作
    { "x", 1, "byte" },
    { "y", 1, "byte" },
    { "arg", 1, "string" },
}

-- 点击后怪物信息
GC_LOST_TEMPLE_MONSTER = {
    { "gdReward", 10, ItemData },
    { "randomReward", 10, ItemData },
    { "list", 6, HeroSimple },
    {"quick",     1,       "byte"},    -- 是否勾选了跳过,0-没有勾选,1-勾选了
    {"showNext",  1,       "byte"},    -- 是否显示跳过,0-不显示,1-显示
}

-- 英雄信息
GC_LOST_TEMPLE_HERO_STATUS = {
    { "list", 30, LostHero },
    { "isEnd", 1, "byte" },
}

-- 召唤神坛信息
GC_LOST_TEMPLE_SUMMON = {
    { "list", 5, HeroSimple },
}

-- 召唤英雄列表
CG_LOST_TEMPLE_SUMMON_LIST = { }
GC_LOST_TEMPLE_SUMMON_LIST = {
    { "list", 15, HeroSimple },
}

-- BUFF属性
GC_LOST_TEMPLE_BUFF = {
    { "list", 5, LostTree },
}

-- 叠加的BUFF属性
CG_LOST_TEMPLE_BUFF_LIST = { }
GC_LOST_TEMPLE_BUFF_LIST = {
    { "list", 10, LostBuff },
}

-- 商店
GC_LOST_TEMPLE_SHOP = {
    { "list", 5, LostShop },
}


-- 更新
GC_LOST_TEMPLE_UPDATE = {
    { "list", 20, LostNode },
    { "playerX", 1, "byte" },
    { "playerY", 1, "byte" },
    { "layer", 1, "byte" },
    { "leftTime", 1, "int"},-- 活动剩余时间
}

-- 结算
GC_LOST_TEMPLE_FIGHT_END = {
    { "data", 1, CombatFinishData },
    { "gdReward", 10, ItemData },
    { "randomReward", 2, ItemData },
}

-- 随机奖励查询
CG_LOGT_TEMPLE_RANDOM_BOX = {}
GC_LOGT_TEMPLE_RANDOM_BOX = {
    { "randomReward", 15, ItemData },
}


-- 一键扫荡状态查询
CG_LOGT_TEMPLE_ONECLICK_SWEEP_QUERY = {}
GC_LOGT_TEMPLE_ONECLICK_SWEEP_QUERY = {
    { "state",      1,      "byte" }, -- 0 未购买， 1可扫荡 ，2已扫荡
}

-- 一键扫荡奖励查询
CG_LOGT_TEMPLE_ONECLICK_SWEEP_AWARD = {}
GC_LOGT_TEMPLE_ONECLICK_SWEEP_AWARD = {
    {"awardArr",       7,         ItemData}
}

-- 进行一键扫荡
CG_LOGT_TEMPLE_ONECLICK_SWEEP_DO = {}