paraworld.map.GetTilesInRegion

Description

取得一个区域内所有的Tile

Parameters

Required Name Type Description
required x double 指定区域的左上角的X坐标
y double 指定区域的左上角的Y坐标
width double 指定区域的宽度
height double 指定区域的高度

Example Return XML

<msg xmlns="">
        <resultCount type="double">2</resultCount>
        <tiles>
                <param index="1">
                        <checkChangeL type="double">305319</checkChangeL>
                        <id type="double">25</id>
                        <tileName="string"></tileName>
                        <x type="double">0.595062255859375</x>
                        <y type="double">0.595062255859375</y>
                        <z type="double">0</z>
                        <ownerUID="string"></ownerUID>
                        <ownerUName="string"></ownerUName>
                        <useUID="string"></useUID>
                        <useUName="string"></useUName>
                        <terrainStyle type="double">1</terrainStyle>
                        <tileType type="double">1</tileType>
                        <models type="string">84,3,1,1.5,-1.5;71,2,1,0.5,-1.5;55,1,7,-0.5,-1.5;84,7,1,1.5,-0.5;82,0,1,-1.5,-1.5;71,6,1,0.5,-0.5;67,5,5,-0.5,-0.5;84,11,1,1.5,0.5;71,10,1,0.5,0.5;55,9,1,-0.5,0.5;84,15,1,1.5,1.5;55,8,1,-1.5,0.5;71,14,1,0.5,1.5;67,13,5,-0.5,1.5;55,12,1,-1.5,1.5</models>
                        <texture type="string" />
                        <rotation type="double">0</rotation>
                </param>
                <param index="2">
                        <checkChangeL type="double">305324</checkChangeL>
                        <id type="double">30</id>
                        <tileName="string"></tileName>
                        <x type="double">0.59503173828125</x>
                        <y type="double">0.595062255859375</y>
                        <z type="double">0</z>
                        <ownerUID="string"></ownerUID>
                        <ownerUName="string"></ownerUName>
                        <useUID="string"></useUID>
                        <useUName="string"></useUName>
                        <terrainStyle type="double">0</terrainStyle>
                        <tileType type="double">0</tileType>
                        <models type="string">82,3,1,1.5,-1.5;81,2,1,0.5,-1.5;82,1,1,-0.5,-1.5;84,0,1,-1.5,-1.5;55,7,1,1.5,-0.5;82,6,1,0.5,-0.5;55,5,1,-0.5,-0.5;84,4,1,-1.5,-0.5;67,11,5,1.5,0.5;55,10,1,0.5,0.5;67,9,3,-0.5,0.5;55,15,1,1.5,1.5;84,8,1,-1.5,0.5;55,14,1,0.5,1.5;55,13,1,-0.5,1.5;84,12,1,-1.5,1.5</models>
                        <texture type="string" />
                        <rotation type="double">0</rotation>
                        <worldID>0</worldID>
                        <worldName></worldName>
                </param>
        </tiles>
</msg>

Error Codes

当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录

Test Cases

case 1

Input:

{

        ["y"]=0.59506225585938,

        ["x"]=0.59503173828125,

        ["height"]=0.0030517578125,

        ["width"]=0.0030517578125,

}

Result:

{

        ["resultCount"]=100,

        ["tiles"]={

                [1]={

                        ["id"]=25,

                        ["tileName"]="",

                        ["rotation"]=0,

                        ["models"]="84,3,1,1.5,-1.5;71,2,1,0.5,-1.5;55,1,7,-0.5,-1.5;84,7,1,1.5,-0.5;82,0,1,-1.5,-1.5;71,6,1,0.5,-0.5;67,5,5,-0.5,-0.5;84,11,1,1.5,0.5;71,10,1,0.5,0.5;55,9,1,-0.5,0.5;84,15,1,1.5,1.5;55,8,1,-1.5,0.5;71,14,1,0.5,1.5;67,13,5,-0.5,1.5;55,12,1,-1.5,1.5",

                        ["x"]=0.59506225585938,

                        ["texture"]="",

                        ["z"]=0,

                        ["ownerUID"]='',

                        ["ownerUName"]='',

                        ["useUID"]='',

                        ["useUName"]='',

                        ["tileType"]=1,

                        ["y"]=0.59506225585938,

                        ["terrainStyle"]=1,

                        ["checkChangeL"]=305319,

                },

                [2]={

                        ["id"]=30,

                        ["rotation"]=0,

                        ["models"]="82,3,1,1.5,-1.5;81,2,1,0.5,-1.5;82,1,1,-0.5,-1.5;84,0,1,-1.5,-1.5;55,7,1,1.5,-0.5;82,6,1,0.5,-0.5;55,5,1,-0.5,-0.5;84,4,1,-1.5,-0.5;67,11,5,1.5,0.5;55,10,1,0.5,0.5;67,9,3,-0.5,0.5;55,15,1,1.5,1.5;84,8,1,-1.5,0.5;55,14,1,0.5,1.5;55,13,1,-0.5,1.5;84,12,1,-1.5,1.5",

                        ["x"]=0.59503173828125,

                        ["texture"]="",

                        ["z"]=0,

                        ["ownerUID"]='',

                        ["ownerUName"]='',

                        ["useUID"]='',

                        ["useUName"]='',

                        ["tileType"]=0,

                        ["y"]=0.59506225585938,

                        ["terrainStyle"]=0,

                        ["checkChangeL"]=305324,

                        ["worldID"] = 0,

                        ["worldName"] = ""

                }
        }
}
Topic revision: r4 - 2008-06-03 - CaoYF
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback