paraworld.map.AddTile

Description

新增一个Tile。

Parameters

Required Name Type Description
required sessionKey string 用户凭证。新增Tile数据时必须登录。
X double 新的Tile左上角的X坐标
Y double 新的Tile左上角的Y坐标
Z double 新的Tile左上角的Z坐标
optional tileType int 土地类型。(1.出售; 2.出租; 3.公共; 4. 未开放; 5.静态)
terrainType int 地形类型。(1:; 2:; 3:; 4:; 5:)
texture string 地形纹理
rotation double 土地旋转角度
price double 价格
price2 double 优惠价
price2StartTime datetime 实行优惠价的起始时间
price2EndTime datetime 实行优惠价的结束时间
rentPrice double 月租. 默认值为-1,若值小于0,表示没有设置月租.
ranking int 级别,默认值为1
logo string LOGO的URL
models string 该Tile中的模型集合
cityName string 所属城市名称
ageGroup int ESRP级别
allowEdit boolean 是否允许编辑

Example Return XML

<msg xmlns="">
        <isSucceed type="boolean">False</isSucceed>
        <info type="string" />
        <errorCode type="double">0</errorCode>
</msg>

Error Codes

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

Test Cases

case 1

Input:

{

        ["y"]=0,

        ["x"]=0,

        ["allowEdit"]=false,

        ["z"]=0,

        ["tileType"]=5,

}

Result:


{

        ["isSucceed"]=true,

        ["info"]="",

        ["errorCode"]=0,

}

Topic revision: r1 - 2008-04-18 - 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