PEDN> Main Web>ParaWorldAPI>ParaWorld_Marketplace (2008-02-29, LiXizhi) Change language en zh-cn? EditAttach

ParaWorld_Marketplace

a central place per application for selling and buying tradable items.

Title a central place per application for selling and buying tradable items.
Author(s) LiXizhi
Date 2008/1/21
File script/kids/3DMapSystemApp/API/paraworld.marketplace.lua

Description

TIP Sample Code

NPL.load("(gl)script/kids/3DMapSystemApp/API/ParaworldAPI.lua");

Member Functions

paraworld.marketplace.GetBags

create class commonlib.setfield("paraworld.marketplace", {});

[[

if(operation = "get") //获取某个App的所有Product

msg = {

"operation"=["get"],(*)

"sessionKey"= string (*),

"appID" = string(*)

}

if(operation = "get")

{

msg =

{

products[list]

{

proID(string)

proName(string)

appID(string)

price(int)

price2(int)

price2Start(string)

price2End(string)

desc(string)

num(int)

}

}

}

Return:

if(operation = "add")

{

msg =

{

result = boolean //操作是否成功

}

}

]]

syntax

function paraworld.marketplace.GetBags() 

paraworld.marketplace.AddBag

syntax

function paraworld.marketplace.AddBag() 

paraworld.marketplace.RemoveBag

[[ ]]

syntax

function paraworld.marketplace.RemoveBag() 
Topic revision: r1 - 2008-02-29 - 15:26:12 - LiXizhi
 

ParaEngine Developer Network

This site is powered by the TWiki collaboration platformCopyright © 2004-2008 ParaEngine Corporation
Ideas, requests, problems regarding ParaEngine platform Send feedback