paraworld.map.AddTile

Description

新增一个Tile。

Parameters

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

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