local HuanJingTowerLogic = require("huanjingTower.HuanjingTowerLogic")

-- 幻境之塔查询
function CG_HUANGJINGTOWER_QUERY(human)
	HuanJingTowerLogic.query(human)
end

function CG_HUANGJINGTOWER_REWARD_QUERY(human, msg)
	HuanJingTowerLogic.sendRewardQuery(human, msg.type)
end

function CG_HUANGJINGTOWER_REWARD_GET(human, msg)
	HuanJingTowerLogic.getReward(human, msg.type, msg.id)
end

-- 幻境之塔战斗查询
function CG_HUANGJINGTOWER_FIGHT_QUERY(human, msg)
	HuanJingTowerLogic.fightQuery(human, msg.lv)
end

-- 幻境之塔购买体力查询
function CG_HUANGJINGTOWER_BUY_TILI_QUERY(human)
	HuanJingTowerLogic.buyTiliQuery(human)
end

-- 幻境之塔购买体力
function CG_HUANGJINGTOWER_BUY_TILI_DO(human, msg)
	HuanJingTowerLogic.buyTiliDo(human, msg.buyCnt)
end

-- 查看通关信息
function CG_HUANGJINGTOWER_QUERY_FIGHT_DATA(human, msg)
	HuanJingTowerLogic.queryFightData(human, msg.lv)
end

-- 幻境之塔扫荡
function CG_HUANGJINGTOWER_SAODANG(human, msg)
	HuanJingTowerLogic.saodangDO(human, msg.lv)
end

function CG_HUANGJINGTOWER_LV_ALLHUMAN(human, msg)
	HuanJingTowerLogic.getAllHumanByLv(human, msg.lv)
end

function CG_HUANGJINGTOWER_KING_REWARD(human, msg)
	HuanJingTowerLogic.unlockTowerKingQuery(human) 
end

function CG_HUANGJINGTOWER_READ_VIDEO(human, msg)
	HuanJingTowerLogic.readFightVideo(human, msg.lv, msg.index)
end

function CG_HUNAGJINGTOWER_ONECLICK_SAPDANG(human, msg)
	HuanJingTowerLogic.oneClickSaodang(human)
end


function CG_HUNAGJINGTOWER_DAILY_PASSLVEL_INFO_QUERY(human, msg)
	HuanJingTowerLogic.HuanjingTower_DailyPassLevelInfo_Query(human)
end