paraworld.map.GetTileByID

Description

依据Tile的ID取得一个Tile的信息

Parameters

Required Name Type Description
required tileID int 要取得的Tile的ID

Example Return XML

<msg xmlns="">
        <tileID type="double">337</tileID>
        <tileName type="string"></tileName>
        <x type="double">0</x>
        <y type="double">0</y>
        <z type="double">0</z>
        <ownerUID="string"></ownerUID>
        <ownerUName="string"></ownerUName>
        <useUID="string"></useUID>
        <useUName="string"></useUName>
        <terrainStyle type="double">1</terrainStyle>
        <texture type="string" />
        <rotation type="double">0</rotation>
        <tileType type="double">5</tileType>
        <price type="double">-1.00</price>
        <rentPrice type="double">-1.00</rentPrice>
        <rank type="double">5</rank>
        <models type="string" />
        <cityName type="string" />
        <community type="string" />
        <ageGroup type="double">1</ageGroup>
        <worldID>0</worldID>
        <worldName></worldName>
</msg>

Error Codes

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

Test Cases

case 1

Input:

<verbatim>
{

        ["tileID"]=337,

}

</verbatim>

_Result_:
<verbatim>
{

        ["tileName"]="",

        ["cityName"]="",

        ["ageGroup"]=1,

        ["community"]="",

        ["price"]=-1,

        ["models"]="",

        ["rank"]=5,

        ["rentPrice"]=-1,

        ["rotation"]=0,

        ["x"]=0,

        ["y"]=0,

        ["z"]=0,

        ["ownerUID"]='',

        ["ownerUName"]='',

        ["useUID"]='',

        ["useUName"]='',

        ["tileType"]=5,

        ["tileID"]=337,

        ["terrainStyle"]=1,

        ["texture"]="",

        ["worldID"] = 0,

        ["worldName"] = ""

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