paraworld.map.GetMapMarksInRegion
Description
返回指定区域内指定类型,指定数量的map mark,按标记等级从高到底排序
Parameters
Required |
Name |
Type |
Description |
required |
x |
double |
搜索范围的起始坐标的X坐标 |
y |
double |
搜索范围的起始坐标的Y坐标 |
width |
double |
搜索范围的宽度 |
height |
double |
搜索范围的高度 |
optional |
markType |
int |
要取得的标记的类型,若为0,则返回所有类型的标记;1表示玩家标记;2表示事件标记;3表示城市标记;4表示广告标记 |
markNum |
int |
要取得的标记的数量,若为0,则返回当前区域内所有标记 |
isApproved |
boolean |
标记是否通过审核,若不传此参数,则返回所有 |
Example Return XML
<msg xmlns="">
<resultCount type="int">2</resultCount>
<marks>
<param index="1">
<markID type="int">2</markID>
<markType type="int">1</markType>
<markTitle type="string">test mark1</markTitle>
<markStyle type="int">1</markStyle>
<x type="number">0</x>
<y type="number">3.0517578125</y>
<isApproved>true</isApproved>
<checkChangeL>23568</checkChangeL>
</param>
<param index="2">
<markID type="int">3</markID>
<markType type="int">1</markType>
<markTitle type="string">test mark1</markTitle>
<markStyle type="int">1</markStyle>
<x type="number">3.0517578125</x>
<y type="number">3.0517578125</y>
<isApproved>true</isApproved>
<checkChangeL>35613</checkChangeL>
</param>
</marks>
</msg>
Error Codes
查看完整的
Error Code
Test Cases
case 1
Input:
{
["y"]=0,
["x"]=0,
["height"]=0.0030517578125,
["width"]=0.0030517578125,
}
Result:
{
["resultCount"]=1,
["marks"]={
[1]={
["markTitle"]="test mark0",
["x"]=8.392333984375e-005,
["y"]=6.103515625e-005,
["isApproved"]=true,
["markType"]=1,
["markStyle"]=21,
["markID"]=7,
["checkChangeL"]=299315,
},
},
}
Topic revision: r1 - 2008-09-08
- CaoYF