---++!! !ParaWorld_Apps %TOC{title="Contents:"}% %STARTINCLUDE% ---++ 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锛孋YF | | *Date* | 2008/1/21 | | *File* | script/kids/3DMapSystemApp/API/paraworld.apps.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/API/ParaworldAPI.lua"); </verbatim> ---+++ Member Functions ---++++ !paraworld.apps.GetUserApp create class commonlib.setfield("paraworld.apps", {}); __syntax__ <verbatim>function paraworld.apps.GetUserApp() </verbatim> ---++++ !paraworld.apps.AddApp [[ <param name="msg"> if(operation = "add") //鏂板涓€涓狽PLApp锛岃繑鍥炶NPLApp鐨凨ey msg = { "operation" = ["add"],(*) "sessionKey" = string,(*) ["appKey"] = string, 鎸囧畾姝ゅ簲鐢ㄧ▼搴忓敮涓€閿€傚鏋滄病鏈夋寚瀹氭鍊硷紝鍒欑郴缁熶細闅忔満鍒嗛厤涓€涓? "nplAppName" = string,(*) "userID" = string,(*) "userName" = string, "desc" = string, "downloadURL" = string,(*) "size" = int (*) } </param> <returns> if(operation = "add") { msg = { isSuccess = boolean //鎿嶄綔鏄惁鎴愬姛 appKey = string [ info ] = string 鍙戠敓寮傚父鏃舵湁姝よ妭鐐? } } </returns> ]] __syntax__ <verbatim>function paraworld.apps.AddApp() </verbatim> ---++++ !paraworld.apps.RemoveApp __syntax__ <verbatim>function paraworld.apps.RemoveApp() </verbatim> ---++++ !paraworld.apps.GetDirectory [[ <param name="msg"> if(operation = "get") //杩斿洖鎵€鏈夊凡寮€鍙戝畬鎴愮殑搴旂敤绋嬪簭锛圢PLApp锛?鎴?渚濅富閿彇寰椾竴涓簲鐢ㄧ▼搴忕殑淇℃伅锛圢PLApp锛? msg = { "operation" = ["get"],(*) "sessionKey" = string,(*) "appID" = string //濡傛灉鏈夊€硷紝琛ㄧず鈥滀緷涓婚敭鍙栧緱涓€涓簲鐢ㄧ▼搴忕殑淇℃伅锛圢PLApp锛夆€濓紝鍚﹀垯锛屸€滆繑鍥炴墍鏈夊凡寮€鍙戝畬鎴愮殑搴旂敤绋嬪簭锛圢PLApp锛夆€? } </param> <returns> if(operation = "get") { if(appID is null) msg = { apps[list] { <param> nplAppID(string) nplAppName(string) userID(string) userName(string) desc(string) downloadURL(string) size(int) approved(boolean) showInDirectory(boolean) finished(boolean) installedCount(int) </param> } } </returns> ]] __syntax__ <verbatim>function paraworld.apps.GetDirectory() </verbatim> %STOPINCLUDE%
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-02-29
-
LiXizhi
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