-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell_loop_assetupdate.lua
36 lines (33 loc) · 1.32 KB
/
shell_loop_assetupdate.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--[[
Title: Empty shell game loop file
Author(s): LiXizhi
Date: 2009/5/3
Desc: this is mostly used to test modules by server.
This loop file can be activated by bootstrapper file "config/bootstrapper_emptyshell.xml"
For server build, the command line to use this shell_loop is below.
- under windows, it is "bootstrapper=\"config/bootstrapper_emptyshell.xml\"".
- under linux shell script, it is 'bootstrapper="config/bootstrapper_emptyshell.xml"'
use the lib:
------------------------------------------------------------
For server build, the command line to use this shell_loop is below.
- under windows, it is "bootstrapper=\"config/bootstrapper_emptyshell.xml\"".
- under linux shell script, it is 'bootstrapper="config/bootstrapper_emptyshell.xml"'
------------------------------------------------------------
]]
NPL.load("(gl)script/ide/commonlib.lua");
main_state = nil;
local function activate()
-- commonlib.echo("heart beat: 30 times per sec");
if(main_state==0) then
-- this is the main game loop
elseif(main_state==nil) then
main_state=0;
log("Hello World from script/shell_loop.lua\n")
NPL.load("(gl)script/kids/3DMapSystemApp/Assets/AssetManifestPage_cmdline.lua");
Map3DSystem.App.Assets.AssetManifestPage.OnClickGenerateFtp();
ParaGlobal.ExitApp();
-- ParaGlobal.Exit(0);
end
return;
end
NPL.this(activate);