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鐨勬墍鏈塒roduct

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 - LiXizhi
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback