local AnotherWorldBattleNS = require("anotherWorldBattle.AnotherWorldBattleNS")
local AnotherWordTreasure = require("anotherWorldBattle.AnotherWordTreasure")


function CG_AB_GetState(human)
    AnotherWorldBattleNS.AB_GetState(human)
end


function CG_AB_JOIN(human, msg)
    AnotherWorldBattleNS.AB_Join(human)
end

function CG_AB_ALLCITY_QUERY(human, msg)
    AnotherWorldBattleNS.AB_AllCity_Query(human)
end


function CG_AB_CITY_DETAILED_QUERY(human, msg)
    AnotherWorldBattleNS.AB_CityDetailed_Query(human, msg.cityId)
end

function CG_AB_POINT_DETAILEDINFO_QUERY(human, msg)
    AnotherWorldBattleNS.AB_PointDetailed_Query(human, msg.cityId, msg.pointIdx)
end


function CG_AB_BASECITY_QUERY(human, msg)
    AnotherWorldBattleNS.AB_BaseCity_Query(human)
end

function CG_AB_MY_OCCUPY_POINT_QUERY(human, msg)
    AnotherWorldBattleNS.AB_PlayerOccupyPOint_Query(human)
end


function CG_AB_UNION_RANK_QUERY(human, msg)
    AnotherWorldBattleNS.AB_UnionRank_Query(human)
end

function CG_AB_PLAYER_RANK_QUERY(human, msg)
    AnotherWorldBattleNS.AB_PlayerRank_Query(human)
end

function CG_AB_GARHER(human, msg)
    AnotherWorldBattleNS.AB_Gather(human, msg.cityId, msg.opType)
end

function CG_AB_POINT_CHAllENGE(human, msg)
    AnotherWorldBattleNS.AB_TryChallengePoint(human, msg.cityId, msg.pointIdx)
end

function CG_AB_UPDATE_LINEUP(human, msg)
    AnotherWorldBattleNS.AB_UpdateLineup(human, msg)
end


function CG_AB_LEAVE_POINT(human, msg)
    AnotherWorldBattleNS.AB_LeavePoint(human, msg)
end

function CG_AB_GET_POINT_LINEUP(human, msg)
    AnotherWorldBattleNS.AB_GetPointLineup(human, msg)
end

function CG_AB_GET_MORALE_INFO(human, msg)
    AnotherWorldBattleNS.AB_GetMyUnionMoraleInfo(human)
end

function CG_AB_MORALE_DO(human, msg)
    AnotherWorldBattleNS.AB_Morale_Do(human)
end

function CG_AB_JIBAN_QUERY(human, msg)
    AnotherWorldBattleNS.AB_PointLine_JiBan_Query(human, msg)
end

function CG_AB_JIBAN_UPDATE(human, msg)
    AnotherWorldBattleNS.AB_PointLine_JiBan_Update(human, msg)
end


function CG_AB_ELF_QUERY(human, msg)
    AnotherWorldBattleNS.AB_PointLine_Elf_Query(human, msg)
end

function CG_AB_ELF_UPDATE(human, msg)
    AnotherWorldBattleNS.AB_PointLine_Elf_Update(human, msg)
end

-------------------------------------------------异界寻宝------------------------------------------

function CG_AB_TREASURE_QUERY(human, msg)
    AnotherWordTreasure.AB_Treasure_Query(human)
end

function CG_AB_TREASURE_LOTTERY(human, msg)
    AnotherWordTreasure.AB_Treasure_Lottery(human, msg.lotteryNum)
end
