---+!! =paraworld.map.GetMapMarksInRegion= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 返回指定区域内指定类型,指定数量的map mark,按标记等级从高到底排序 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|x|%BLUE%double%ENDCOLOR%|搜索范围的起始坐标的X坐标| |^|y|%BLUE%double%ENDCOLOR%|搜索范围的起始坐标的Y坐标| |^|width|%BLUE%double%ENDCOLOR%|搜索范围的宽度| |^|height|%BLUE%double%ENDCOLOR%|搜索范围的高度| |<font color="#4682b4">optional</font>|markType|%BLUE%int%ENDCOLOR%|要取得的标记的类型,若为0,则返回所有类型的标记;1表示玩家标记;2表示事件标记;3表示城市标记;4表示广告标记| |^|markNum|%BLUE%int%ENDCOLOR%|要取得的标记的数量,若为0,则返回当前区域内所有标记| |^|isApproved|%BLUE%boolean%ENDCOLOR%|标记是否通过审核,若不传此参数,则返回所有| ---++ Example Return XML <verbatim> <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> </verbatim> ---++ Error Codes 查看完整的[[ErrorCodes][Error Code]] ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["y"]=0, ["x"]=0, ["height"]=0.0030517578125, ["width"]=0.0030517578125, } </verbatim> _Result_: <verbatim> { ["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, }, }, } </verbatim>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2008-09-08
-
CaoYF
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 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