local ValleyLogic = require("valley.ValleyLogic")
local ValleyTask = require("valley.ValleyTask")

function CG_VALLEY_QUERY(human)
	ValleyLogic.query(human)
end

function CG_VALLEY_SIGN(human)
	ValleyLogic.sign(human)
end

function CG_VALLEY_ROAD_QUERY(human, msg)
	ValleyLogic.queryRoad(human, msg.camp, msg.roadIndex)
end

function CG_VALLEY_ROAD_CHANGE(human, msg)
	ValleyLogic.changeRoad(human, msg.roadIndex)
end

function CG_VALLEY_EXPLORE_QUERY(human)
	ValleyLogic.sendExploreQuery(human)
end

function CG_VALLEY_EXPLORE_GET(human)
	ValleyLogic.getExplore(human)
end

function CG_VALLEY_INSPIRE_QUERY(human)
	ValleyLogic.queryInspire(human)
end

function CG_VALLEY_INSPIRE_SELECT(human, msg)
	ValleyLogic.selectInspire(human, msg.selectIndex)
end

function CG_VALLEY_FIGHT_QUERY(human, msg)
	ValleyLogic.queryFight(human, msg.roadIndex)
end

function CG_VALLEY_FIGHT_PLAY(human, msg)
	ValleyLogic.playFight(human, msg.videoUuid)
end

function CG_VALLEY_TASK_QUERY(human, msg)
	ValleyTask.sendQuery(human, msg.taskType)
end

function CG_VALLEY_TASK_GET(human, msg)
	ValleyTask.getReward(human, msg.id)
end

function CG_VALLEY_LOG_QUERY(human, msg)
	ValleyLogic.queryLog(human, msg.roadIndex)
end

function CG_VALLEY_BOARD_QUERY(human, msg)
	ValleyLogic.queryBoard(human, msg.camp)
end