---+!! =paraworld.map.AddTile= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 新增一个Tile。 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|sessionKey|%BLUE%string%ENDCOLOR%|用户凭证。新增Tile数据时必须登录。| |^|X|%BLUE%double%ENDCOLOR%|新的Tile左上角的X坐标| |^|Y|%BLUE%double%ENDCOLOR%|新的Tile左上角的Y坐标| |^|Z|%BLUE%double%ENDCOLOR%|新的Tile左上角的Z坐标| |optional|tileType|%BLUE%int%ENDCOLOR%|土地类型。(1.出售; 2.出租; 3.公共; 4. 未开放; 5.静态)| |^|terrainType|%BLUE%int%ENDCOLOR%|地形类型。(1:; 2:; 3:; 4:; 5:)| |^|texture|%BLUE%string%ENDCOLOR%|地形纹理| |^|rotation|%BLUE%double%ENDCOLOR%|土地旋转角度| |^|price|%BLUE%double%ENDCOLOR%|价格| |^|price2|%BLUE%double%ENDCOLOR%|优惠价| |^|price2StartTime|%BLUE%datetime%ENDCOLOR%|实行优惠价的起始时间| |^|price2EndTime|%BLUE%datetime%ENDCOLOR%|实行优惠价的结束时间| |^|rentPrice|%BLUE%double%ENDCOLOR%|月租. 默认值为-1,若值小于0,表示没有设置月租.| |^|ranking|%BLUE%int%ENDCOLOR%|级别,默认值为1| |^|logo|%BLUE%string%ENDCOLOR%|LOGO的URL| |^|models|%BLUE%string%ENDCOLOR%|该Tile中的模型集合| |^|cityName|%BLUE%string%ENDCOLOR%|所属城市名称| |^|ageGroup|%BLUE%int%ENDCOLOR%|ESRP级别| |^|allowEdit|%BLUE%boolean%ENDCOLOR%|是否允许编辑| ---++ Example Return XML <verbatim> <msg xmlns=""> <isSucceed type="boolean">False</isSucceed> <info type="string" /> <errorCode type="double">0</errorCode> </msg> </verbatim> ---++ Error Codes 当发生异常时,返回数据中会有一个"errorCode"节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录 ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["y"]=0, ["x"]=0, ["allowEdit"]=false, ["z"]=0, ["tileType"]=5, } </verbatim> _Result_: <verbatim> { ["isSucceed"]=true, ["info"]="", ["errorCode"]=0, } </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-04-18
-
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