@gamely/gly-engine-lite 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.lua +137 -154
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
|
|
2
|
-
local
|
|
3
|
-
local
|
|
4
|
-
local
|
|
5
|
-
local
|
|
6
|
-
local
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
11
|
-
local
|
|
12
|
-
local
|
|
13
|
-
local
|
|
14
|
-
local
|
|
15
|
-
local
|
|
16
|
-
local
|
|
17
|
-
local
|
|
18
|
-
local
|
|
19
|
-
local
|
|
20
|
-
local
|
|
21
|
-
local
|
|
22
|
-
local
|
|
23
|
-
local
|
|
24
|
-
local
|
|
25
|
-
local
|
|
26
|
-
local
|
|
27
|
-
local
|
|
28
|
-
local
|
|
29
|
-
local
|
|
30
|
-
local
|
|
31
|
-
local
|
|
32
|
-
local
|
|
33
|
-
local
|
|
34
|
-
local
|
|
35
|
-
local
|
|
36
|
-
local
|
|
37
|
-
local
|
|
38
|
-
local
|
|
39
|
-
local
|
|
40
|
-
local
|
|
41
|
-
local
|
|
42
|
-
local
|
|
43
|
-
local
|
|
44
|
-
local
|
|
45
|
-
local
|
|
46
|
-
local
|
|
47
|
-
local
|
|
48
|
-
local
|
|
49
|
-
local
|
|
50
|
-
local
|
|
51
|
-
local
|
|
2
|
+
local source_version_2399 = nil
|
|
3
|
+
local source_shared_engine_loadcore_23a4 = nil
|
|
4
|
+
local source_shared_engine_loadgame_23af = nil
|
|
5
|
+
local source_engine_api_data_encoder_23c1 = nil
|
|
6
|
+
local source_engine_api_system_app_23cc = nil
|
|
7
|
+
local source_engine_api_data_hash_23d7 = nil
|
|
8
|
+
local source_engine_api_io_http_23e2 = nil
|
|
9
|
+
local source_engine_api_data_i18n_23ed = nil
|
|
10
|
+
local source_engine_api_system_key_23f8 = nil
|
|
11
|
+
local source_engine_api_debug_log_2403 = nil
|
|
12
|
+
local source_engine_api_math_basic_240e = nil
|
|
13
|
+
local source_engine_api_math_clib_2419 = nil
|
|
14
|
+
local source_engine_api_math_random_2424 = nil
|
|
15
|
+
local source_engine_api_data_array_242f = nil
|
|
16
|
+
local source_engine_api_io_media_243a = nil
|
|
17
|
+
local source_engine_api_draw_fps_2445 = nil
|
|
18
|
+
local source_engine_api_draw_text_2450 = nil
|
|
19
|
+
local source_engine_api_draw_poly_245b = nil
|
|
20
|
+
local source_engine_api_raw_memory_2466 = nil
|
|
21
|
+
local source_engine_protocol_http_callback_2478 = nil
|
|
22
|
+
local source_shared_var_object_root_248a = nil
|
|
23
|
+
local source_engine_api_system_color_2495 = nil
|
|
24
|
+
local source_shared_var_object_std_24a0 = nil
|
|
25
|
+
local source_shared_functional_pipeline_2940 = nil
|
|
26
|
+
local source_shared_string_dsl_requires_294b = nil
|
|
27
|
+
local source_shared_string_eval_file_2bb2 = nil
|
|
28
|
+
local source_shared_string_eval_code_2bbd = nil
|
|
29
|
+
local source_shared_functional_decorator_2e5e = nil
|
|
30
|
+
local source_shared_string_encode_http_5c51 = nil
|
|
31
|
+
local source_shared_string_encode_url_5c5c = nil
|
|
32
|
+
local function main_2390()
|
|
33
|
+
local version = source_version_2399()
|
|
34
|
+
local loadcore = source_shared_engine_loadcore_23a4()
|
|
35
|
+
local loadgame = source_shared_engine_loadgame_23af()
|
|
36
|
+
local engine_encoder = source_engine_api_data_encoder_23c1()
|
|
37
|
+
local engine_game = source_engine_api_system_app_23cc()
|
|
38
|
+
local engine_hash = source_engine_api_data_hash_23d7()
|
|
39
|
+
local engine_http = source_engine_api_io_http_23e2()
|
|
40
|
+
local engine_i18n = source_engine_api_data_i18n_23ed()
|
|
41
|
+
local engine_key = source_engine_api_system_key_23f8()
|
|
42
|
+
local engine_log = source_engine_api_debug_log_2403()
|
|
43
|
+
local engine_math = source_engine_api_math_basic_240e()
|
|
44
|
+
local engine_math_clib = source_engine_api_math_clib_2419()
|
|
45
|
+
local engine_math_random = source_engine_api_math_random_2424()
|
|
46
|
+
local engine_array = source_engine_api_data_array_242f()
|
|
47
|
+
local engine_media = source_engine_api_io_media_243a()
|
|
48
|
+
local engine_api_draw_fps = source_engine_api_draw_fps_2445()
|
|
49
|
+
local engine_api_draw_text = source_engine_api_draw_text_2450()
|
|
50
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_245b()
|
|
51
|
+
local engine_raw_memory = source_engine_api_raw_memory_2466()
|
|
52
|
+
local callback_http = source_engine_protocol_http_callback_2478()
|
|
53
|
+
local application_default = source_shared_var_object_root_248a()
|
|
54
|
+
local color = source_engine_api_system_color_2495()
|
|
55
|
+
local std = source_shared_var_object_std_24a0()
|
|
52
56
|
local application = application_default
|
|
53
57
|
local engine = {
|
|
54
58
|
keyboard = function(a, b, c, d) end,
|
|
@@ -85,6 +89,7 @@ poly = native_draw_poly,
|
|
|
85
89
|
line = native_draw_line
|
|
86
90
|
}
|
|
87
91
|
local cfg_text = {
|
|
92
|
+
is_tui = native_text_is_tui,
|
|
88
93
|
font_previous = native_text_font_previous
|
|
89
94
|
}
|
|
90
95
|
local cfg_http = {
|
|
@@ -133,10 +138,7 @@ function native_callback_keyboard(key, value)
|
|
|
133
138
|
engine.keyboard(std, engine, key, value)
|
|
134
139
|
end
|
|
135
140
|
function native_callback_http(id, key, data)
|
|
136
|
-
|
|
137
|
-
return callback_http.func(engine['http_requests'][id], key, data)
|
|
138
|
-
end
|
|
139
|
-
return nil
|
|
141
|
+
return callback_http.func(engine['http'][id], key, data, std)
|
|
140
142
|
end
|
|
141
143
|
function native_callback_init(width, height, game_lua)
|
|
142
144
|
application = loadgame.script(game_lua, application_default)
|
|
@@ -178,9 +180,8 @@ loadcore.setup(std, application, engine)
|
|
|
178
180
|
:package('@draw.poly', engine_api_draw_poly, cfg_poly)
|
|
179
181
|
:package('@color', color)
|
|
180
182
|
:package('@log', engine_log, cfg_log)
|
|
181
|
-
:package('math',
|
|
182
|
-
:package('math.
|
|
183
|
-
:package('math.random', engine_math.clib_random)
|
|
183
|
+
:package('math', engine_math_clib)
|
|
184
|
+
:package('math.random', engine_math_random)
|
|
184
185
|
:package('http', engine_http, cfg_http)
|
|
185
186
|
:package('base64', engine_encoder, cfg_base64)
|
|
186
187
|
:package('json', engine_encoder, cfg_json)
|
|
@@ -207,13 +208,13 @@ version=version
|
|
|
207
208
|
}
|
|
208
209
|
return P
|
|
209
210
|
end
|
|
210
|
-
|
|
211
|
-
return '0.1.
|
|
211
|
+
source_version_2399 = function()
|
|
212
|
+
return '0.1.4'
|
|
212
213
|
end
|
|
213
214
|
--
|
|
214
|
-
|
|
215
|
-
local zeebo_pipeline =
|
|
216
|
-
local requires =
|
|
215
|
+
source_shared_engine_loadcore_23a4 = function()
|
|
216
|
+
local zeebo_pipeline = source_shared_functional_pipeline_2940()
|
|
217
|
+
local requires = source_shared_string_dsl_requires_294b()
|
|
217
218
|
local function step_install_libsys(self, lib_name, library, custom, is_system)
|
|
218
219
|
if not is_system then return end
|
|
219
220
|
local ok, msg = pcall(function()
|
|
@@ -295,9 +296,9 @@ setup = setup
|
|
|
295
296
|
return P
|
|
296
297
|
end
|
|
297
298
|
--
|
|
298
|
-
|
|
299
|
-
local eval_file =
|
|
300
|
-
local eval_code =
|
|
299
|
+
source_shared_engine_loadgame_23af = function()
|
|
300
|
+
local eval_file = source_shared_string_eval_file_2bb2()
|
|
301
|
+
local eval_code = source_shared_string_eval_code_2bbd()
|
|
301
302
|
local has_io_open = io and io.open
|
|
302
303
|
local function normalize(app, base)
|
|
303
304
|
if not app then return nil end
|
|
@@ -331,14 +332,18 @@ end
|
|
|
331
332
|
return app
|
|
332
333
|
end
|
|
333
334
|
local function script(src, base)
|
|
335
|
+
if not src and package and package.jspath then
|
|
336
|
+
src = {}
|
|
337
|
+
end
|
|
334
338
|
if type(src) == 'table' or type(src) == 'userdata' then
|
|
335
339
|
return normalize(src, base)
|
|
336
340
|
end
|
|
337
341
|
local application = type(src) == 'function' and src
|
|
338
|
-
if not
|
|
342
|
+
if not application then
|
|
343
|
+
if type(application) ~= 'string' or #src == 0 then
|
|
339
344
|
src = 'game'
|
|
340
345
|
end
|
|
341
|
-
if
|
|
346
|
+
if src:find('\n') then
|
|
342
347
|
local ok, app = eval_code.script(src)
|
|
343
348
|
application = ok and app
|
|
344
349
|
else
|
|
@@ -354,6 +359,10 @@ application = ok and app
|
|
|
354
359
|
app_file:close()
|
|
355
360
|
end
|
|
356
361
|
end
|
|
362
|
+
end
|
|
363
|
+
while type(application) == 'function' do
|
|
364
|
+
application = application()
|
|
365
|
+
end
|
|
357
366
|
return normalize(application, base)
|
|
358
367
|
end
|
|
359
368
|
local P = {
|
|
@@ -362,7 +371,7 @@ script = script
|
|
|
362
371
|
return P
|
|
363
372
|
end
|
|
364
373
|
--
|
|
365
|
-
|
|
374
|
+
source_engine_api_data_encoder_23c1 = function()
|
|
366
375
|
local function install(std, engine, library, name)
|
|
367
376
|
std = std or {}
|
|
368
377
|
std[name] = {
|
|
@@ -377,8 +386,8 @@ install=install
|
|
|
377
386
|
return P
|
|
378
387
|
end
|
|
379
388
|
--
|
|
380
|
-
|
|
381
|
-
local util_decorator =
|
|
389
|
+
source_engine_api_system_app_23cc = function()
|
|
390
|
+
local util_decorator = source_shared_functional_decorator_2e5e()
|
|
382
391
|
local function reset(std, engine)
|
|
383
392
|
if std.node then
|
|
384
393
|
std.bus.emit('exit')
|
|
@@ -418,7 +427,7 @@ install=install
|
|
|
418
427
|
return P
|
|
419
428
|
end
|
|
420
429
|
--
|
|
421
|
-
|
|
430
|
+
source_engine_api_data_hash_23d7 = function()
|
|
422
431
|
local function djb2(digest)
|
|
423
432
|
local index = 1
|
|
424
433
|
local hash = 5381
|
|
@@ -442,8 +451,8 @@ install = install
|
|
|
442
451
|
return P
|
|
443
452
|
end
|
|
444
453
|
--
|
|
445
|
-
|
|
446
|
-
local zeebo_pipeline =
|
|
454
|
+
source_engine_api_io_http_23e2 = function()
|
|
455
|
+
local zeebo_pipeline = source_shared_functional_pipeline_2940()
|
|
447
456
|
local function json(self)
|
|
448
457
|
self.options['json'] = true
|
|
449
458
|
return self
|
|
@@ -497,15 +506,11 @@ engine.current.callbacks.http(std, engine.current.data)
|
|
|
497
506
|
end
|
|
498
507
|
end
|
|
499
508
|
return function (url)
|
|
500
|
-
if protocol.has_callback then
|
|
501
|
-
engine.http_count = engine.http_count + 1
|
|
502
|
-
end
|
|
503
509
|
local json_encode = std.json and std.json.encode
|
|
504
510
|
local json_decode = std.json and std.json.decode
|
|
505
511
|
local http_body = function(self, content) return body(self, content, json_encode) end
|
|
506
512
|
local game = engine.current.data
|
|
507
513
|
local self = {
|
|
508
|
-
id = engine.http_count,
|
|
509
514
|
url = url,
|
|
510
515
|
speed = '',
|
|
511
516
|
options = {},
|
|
@@ -540,11 +545,13 @@ std.http[key] = value
|
|
|
540
545
|
end
|
|
541
546
|
self.pipeline = {
|
|
542
547
|
function()
|
|
543
|
-
|
|
548
|
+
self.id = tonumber(tostring({}):gsub('0x', ''):match('^table: (%w+)$'), 16)
|
|
549
|
+
engine.http[self.id] = self
|
|
550
|
+
if protocol.force and not self.options['noforce'] then
|
|
544
551
|
self.url = url:gsub("^[^:]+://", protocol.force.."://")
|
|
552
|
+
end
|
|
545
553
|
end,
|
|
546
554
|
function()
|
|
547
|
-
if protocol.has_callback then engine.http_requests[self.id] = self end
|
|
548
555
|
protocol.handler(self, self.id)
|
|
549
556
|
end,
|
|
550
557
|
function()
|
|
@@ -576,7 +583,7 @@ std.http.status = nil
|
|
|
576
583
|
std.http.body_is_table = nil
|
|
577
584
|
end,
|
|
578
585
|
function()
|
|
579
|
-
|
|
586
|
+
engine.http[self.id] = nil
|
|
580
587
|
zeebo_pipeline.reset(self)
|
|
581
588
|
end
|
|
582
589
|
}
|
|
@@ -585,10 +592,7 @@ end
|
|
|
585
592
|
end
|
|
586
593
|
local function install(std, engine, protocol)
|
|
587
594
|
assert(protocol and protocol.handler, 'missing protocol handler')
|
|
588
|
-
|
|
589
|
-
engine.http_count = 0
|
|
590
|
-
engine.http_requests = {}
|
|
591
|
-
end
|
|
595
|
+
engine.http = {}
|
|
592
596
|
std.http = std.http or {}
|
|
593
597
|
std.http.get=request('GET', std, engine, protocol)
|
|
594
598
|
std.http.head=request('HEAD', std, engine, protocol)
|
|
@@ -606,7 +610,7 @@ install=install
|
|
|
606
610
|
return P
|
|
607
611
|
end
|
|
608
612
|
--
|
|
609
|
-
|
|
613
|
+
source_engine_api_data_i18n_23ed = function()
|
|
610
614
|
local language = 'en-US'
|
|
611
615
|
local language_default = 'en-US'
|
|
612
616
|
local language_list = {}
|
|
@@ -698,7 +702,7 @@ install=install
|
|
|
698
702
|
return P
|
|
699
703
|
end
|
|
700
704
|
--
|
|
701
|
-
|
|
705
|
+
source_engine_api_system_key_23f8 = function()
|
|
702
706
|
local function real_key(std, engine, rkey, rvalue)
|
|
703
707
|
local value = rvalue == 1 or rvalue == true
|
|
704
708
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -735,8 +739,8 @@ install = install
|
|
|
735
739
|
return P
|
|
736
740
|
end
|
|
737
741
|
--
|
|
738
|
-
|
|
739
|
-
local util_decorator =
|
|
742
|
+
source_engine_api_debug_log_2403 = function()
|
|
743
|
+
local util_decorator = source_shared_functional_decorator_2e5e()
|
|
740
744
|
local logging_types = {
|
|
741
745
|
'none', 'fatal', 'error', 'warn', 'debug', 'info'
|
|
742
746
|
}
|
|
@@ -782,7 +786,7 @@ install = install
|
|
|
782
786
|
return P
|
|
783
787
|
end
|
|
784
788
|
--
|
|
785
|
-
|
|
789
|
+
source_engine_api_math_basic_240e = function()
|
|
786
790
|
local function abs(value)
|
|
787
791
|
if value < 0 then
|
|
788
792
|
return -value
|
|
@@ -861,30 +865,6 @@ index = index + 1
|
|
|
861
865
|
end
|
|
862
866
|
return min_value
|
|
863
867
|
end
|
|
864
|
-
local function sine(t, freq)
|
|
865
|
-
return math.pi and math.sin(2 * math.pi * freq * t) or 1
|
|
866
|
-
end
|
|
867
|
-
local function ramp(t, freq, ratio)
|
|
868
|
-
t = (t / 2) % (1 / freq) * freq
|
|
869
|
-
if t < ratio then
|
|
870
|
-
return 2 * t / ratio - 1
|
|
871
|
-
else
|
|
872
|
-
return (2 * t - ratio - 1) / (ratio - 1)
|
|
873
|
-
end
|
|
874
|
-
end
|
|
875
|
-
local function saw(t, freq)
|
|
876
|
-
return ramp(t, freq, 1)
|
|
877
|
-
end
|
|
878
|
-
local function triangle(t, freq)
|
|
879
|
-
return ramp(t, freq, 1/2)
|
|
880
|
-
end
|
|
881
|
-
local function rect(t, freq, duty)
|
|
882
|
-
duty = 1 - duty * 2
|
|
883
|
-
return saw(t, freq) > duty and 1 or -1
|
|
884
|
-
end
|
|
885
|
-
local function square(t, freq)
|
|
886
|
-
return rect(t, freq, 1/2)
|
|
887
|
-
end
|
|
888
868
|
local function install(std)
|
|
889
869
|
std.math = std.math or {}
|
|
890
870
|
std.math.abs=abs
|
|
@@ -899,14 +879,15 @@ std.math.map=map
|
|
|
899
879
|
std.math.max=max
|
|
900
880
|
std.math.min=min
|
|
901
881
|
end
|
|
902
|
-
local
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
std.math.square=square
|
|
907
|
-
std.math.triangle=triangle
|
|
882
|
+
local P = {
|
|
883
|
+
install = install
|
|
884
|
+
}
|
|
885
|
+
return P
|
|
908
886
|
end
|
|
909
|
-
|
|
887
|
+
--
|
|
888
|
+
source_engine_api_math_clib_2419 = function()
|
|
889
|
+
local function install(std)
|
|
890
|
+
assert(math and (1/2 ~= 0))
|
|
910
891
|
std.math = std.math or {}
|
|
911
892
|
std.math.acos=math.acos
|
|
912
893
|
std.math.asin=math.asin
|
|
@@ -934,31 +915,31 @@ std.math.sqrt=math.sqrt
|
|
|
934
915
|
std.math.tan=math.tan
|
|
935
916
|
std.math.tanh=math.tanh
|
|
936
917
|
end
|
|
937
|
-
local
|
|
918
|
+
local P = {
|
|
919
|
+
install = install
|
|
920
|
+
}
|
|
921
|
+
return P
|
|
922
|
+
end
|
|
923
|
+
--
|
|
924
|
+
source_engine_api_math_random_2424 = function()
|
|
925
|
+
local function install(std)
|
|
926
|
+
assert(math and (1/2 ~= 0))
|
|
938
927
|
std.math = std.math or {}
|
|
939
928
|
std.math.random = function(a, b)
|
|
940
929
|
a = a and math.floor(a)
|
|
941
930
|
b = b and math.floor(b)
|
|
931
|
+
if a > b then a, b = b, a end
|
|
942
932
|
return math.random(a, b)
|
|
943
933
|
end
|
|
944
934
|
end
|
|
945
935
|
local P = {
|
|
946
|
-
install = install
|
|
947
|
-
wave = {
|
|
948
|
-
install = install_wave
|
|
949
|
-
},
|
|
950
|
-
clib = {
|
|
951
|
-
install = install_clib
|
|
952
|
-
},
|
|
953
|
-
clib_random = {
|
|
954
|
-
install = install_clib_random
|
|
955
|
-
}
|
|
936
|
+
install = install
|
|
956
937
|
}
|
|
957
|
-
return P
|
|
938
|
+
return P
|
|
958
939
|
end
|
|
959
940
|
--
|
|
960
|
-
|
|
961
|
-
local util_decorator =
|
|
941
|
+
source_engine_api_data_array_242f = function()
|
|
942
|
+
local util_decorator = source_shared_functional_decorator_2e5e()
|
|
962
943
|
local function array_map(array, func)
|
|
963
944
|
local res = {}
|
|
964
945
|
local index = 1
|
|
@@ -1119,7 +1100,7 @@ install = install
|
|
|
1119
1100
|
return P
|
|
1120
1101
|
end
|
|
1121
1102
|
--
|
|
1122
|
-
|
|
1103
|
+
source_engine_api_io_media_243a = function()
|
|
1123
1104
|
local function media_create(node, channels, handler)
|
|
1124
1105
|
local decorator = function(func)
|
|
1125
1106
|
func = func or function() end
|
|
@@ -1166,7 +1147,7 @@ install=install
|
|
|
1166
1147
|
return P
|
|
1167
1148
|
end
|
|
1168
1149
|
--
|
|
1169
|
-
|
|
1150
|
+
source_engine_api_draw_fps_2445 = function()
|
|
1170
1151
|
local function draw_fps(std, engine, show, pos_x, pos_y)
|
|
1171
1152
|
if show < 1 then return end
|
|
1172
1153
|
local x = engine.current.config.offset_x + pos_x
|
|
@@ -1215,8 +1196,8 @@ install=install
|
|
|
1215
1196
|
return P
|
|
1216
1197
|
end
|
|
1217
1198
|
--
|
|
1218
|
-
|
|
1219
|
-
local util_decorator =
|
|
1199
|
+
source_engine_api_draw_text_2450 = function()
|
|
1200
|
+
local util_decorator = source_shared_functional_decorator_2e5e()
|
|
1220
1201
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
1221
1202
|
size = size or 2
|
|
1222
1203
|
local hem = engine.current.data.width / 80
|
|
@@ -1234,6 +1215,8 @@ std.text.print(x - aligns_x[(align_x or 1) + 2], y - aligns_y[(align_y or 1) + 2
|
|
|
1234
1215
|
return w, h
|
|
1235
1216
|
end
|
|
1236
1217
|
local function install(std, engine, config)
|
|
1218
|
+
std.text.font_previous = config.font_previous
|
|
1219
|
+
std.text.is_tui = config.is_tui or function() return false end
|
|
1237
1220
|
std.text.print_ex = util_decorator.prefix2(std, engine, text_print_ex)
|
|
1238
1221
|
std.text.put = util_decorator.prefix3(std, engine, config.font_previous, text_put)
|
|
1239
1222
|
end
|
|
@@ -1243,7 +1226,7 @@ install=install
|
|
|
1243
1226
|
return P
|
|
1244
1227
|
end
|
|
1245
1228
|
--
|
|
1246
|
-
|
|
1229
|
+
source_engine_api_draw_poly_245b = function()
|
|
1247
1230
|
local function decorator_poo(object, func)
|
|
1248
1231
|
if not object or not func then return func end
|
|
1249
1232
|
return function(a, b, c, d)
|
|
@@ -1350,7 +1333,7 @@ install=install
|
|
|
1350
1333
|
return P
|
|
1351
1334
|
end
|
|
1352
1335
|
--
|
|
1353
|
-
|
|
1336
|
+
source_engine_api_raw_memory_2466 = function()
|
|
1354
1337
|
local memory_dict_unload = {}
|
|
1355
1338
|
local memory_dict = {}
|
|
1356
1339
|
local memory_list = {}
|
|
@@ -1405,9 +1388,9 @@ install=install
|
|
|
1405
1388
|
return P
|
|
1406
1389
|
end
|
|
1407
1390
|
--
|
|
1408
|
-
|
|
1409
|
-
local str_http =
|
|
1410
|
-
local str_url =
|
|
1391
|
+
source_engine_protocol_http_callback_2478 = function()
|
|
1392
|
+
local str_http = source_shared_string_encode_http_5c51()
|
|
1393
|
+
local str_url = source_shared_string_encode_url_5c5c()
|
|
1411
1394
|
local callbacks = {
|
|
1412
1395
|
['async-promise'] = function(self)
|
|
1413
1396
|
return self:promise()
|
|
@@ -1474,7 +1457,7 @@ func = native_http_callback
|
|
|
1474
1457
|
return P
|
|
1475
1458
|
end
|
|
1476
1459
|
--
|
|
1477
|
-
|
|
1460
|
+
source_shared_var_object_root_248a = function()
|
|
1478
1461
|
local P = {
|
|
1479
1462
|
data={
|
|
1480
1463
|
width=1280,
|
|
@@ -1504,7 +1487,7 @@ callbacks={
|
|
|
1504
1487
|
return P;
|
|
1505
1488
|
end
|
|
1506
1489
|
--
|
|
1507
|
-
|
|
1490
|
+
source_engine_api_system_color_2495 = function()
|
|
1508
1491
|
local function install(std)
|
|
1509
1492
|
std.color = std.color or {}
|
|
1510
1493
|
std.color.white = 0xFFFFFFFF
|
|
@@ -1539,7 +1522,7 @@ install = install
|
|
|
1539
1522
|
return P
|
|
1540
1523
|
end
|
|
1541
1524
|
--
|
|
1542
|
-
|
|
1525
|
+
source_shared_var_object_std_24a0 = function()
|
|
1543
1526
|
local P = {
|
|
1544
1527
|
milis = 0,
|
|
1545
1528
|
delta = 0,
|
|
@@ -1607,7 +1590,7 @@ any=false
|
|
|
1607
1590
|
return P;
|
|
1608
1591
|
end
|
|
1609
1592
|
--
|
|
1610
|
-
|
|
1593
|
+
source_shared_functional_pipeline_2940 = function()
|
|
1611
1594
|
local function pipe(self)
|
|
1612
1595
|
return function()
|
|
1613
1596
|
self:run()
|
|
@@ -1657,7 +1640,7 @@ run=run
|
|
|
1657
1640
|
return P
|
|
1658
1641
|
end
|
|
1659
1642
|
--
|
|
1660
|
-
|
|
1643
|
+
source_shared_string_dsl_requires_294b = function()
|
|
1661
1644
|
local function encode(dsl_string)
|
|
1662
1645
|
local spec = {
|
|
1663
1646
|
list = {},
|
|
@@ -1706,7 +1689,7 @@ should_import = should_import
|
|
|
1706
1689
|
return P
|
|
1707
1690
|
end
|
|
1708
1691
|
--
|
|
1709
|
-
|
|
1692
|
+
source_shared_string_eval_file_2bb2 = function()
|
|
1710
1693
|
local function script(src)
|
|
1711
1694
|
local ok, app = false, nil
|
|
1712
1695
|
if require then
|
|
@@ -1732,7 +1715,7 @@ script = script,
|
|
|
1732
1715
|
return P
|
|
1733
1716
|
end
|
|
1734
1717
|
--
|
|
1735
|
-
|
|
1718
|
+
source_shared_string_eval_code_2bbd = function()
|
|
1736
1719
|
local function script(src)
|
|
1737
1720
|
local loader = loadstring or load
|
|
1738
1721
|
if not loader then
|
|
@@ -1753,7 +1736,7 @@ script = script,
|
|
|
1753
1736
|
return P
|
|
1754
1737
|
end
|
|
1755
1738
|
--
|
|
1756
|
-
|
|
1739
|
+
source_shared_functional_decorator_2e5e = function()
|
|
1757
1740
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
1758
1741
|
return function (a, b, c, d, e, f)
|
|
1759
1742
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -1811,7 +1794,7 @@ prefix1_t = table_prefix1
|
|
|
1811
1794
|
return P
|
|
1812
1795
|
end
|
|
1813
1796
|
--
|
|
1814
|
-
|
|
1797
|
+
source_shared_string_encode_http_5c51 = function()
|
|
1815
1798
|
local function is_ok(status)
|
|
1816
1799
|
return (status and 200 <= status and status < 300) or false
|
|
1817
1800
|
end
|
|
@@ -1958,7 +1941,7 @@ create_request=create_request
|
|
|
1958
1941
|
}
|
|
1959
1942
|
end
|
|
1960
1943
|
--
|
|
1961
|
-
|
|
1944
|
+
source_shared_string_encode_url_5c5c = function()
|
|
1962
1945
|
local function search_param(param_list, param_dict)
|
|
1963
1946
|
local index, params = 1, ''
|
|
1964
1947
|
while param_list and param_dict and index <= #param_list do
|
|
@@ -1980,4 +1963,4 @@ search_param = search_param
|
|
|
1980
1963
|
return P
|
|
1981
1964
|
end
|
|
1982
1965
|
--
|
|
1983
|
-
return
|
|
1966
|
+
return main_2390()
|