@gamely/gly-engine-lite 0.2.5 → 0.2.6
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 +97 -97
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,58 +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 function
|
|
33
|
-
local version =
|
|
34
|
-
local loadcore =
|
|
35
|
-
local loadgame =
|
|
36
|
-
local engine_encoder =
|
|
37
|
-
local engine_game =
|
|
38
|
-
local engine_hash =
|
|
39
|
-
local engine_http =
|
|
40
|
-
local engine_i18n =
|
|
41
|
-
local engine_key =
|
|
42
|
-
local engine_log =
|
|
43
|
-
local engine_math =
|
|
44
|
-
local engine_math_clib =
|
|
45
|
-
local engine_math_random =
|
|
46
|
-
local engine_array =
|
|
47
|
-
local engine_media =
|
|
48
|
-
local engine_api_draw_fps =
|
|
49
|
-
local engine_api_draw_text =
|
|
50
|
-
local engine_api_draw_poly =
|
|
51
|
-
local engine_raw_memory =
|
|
52
|
-
local callback_http =
|
|
53
|
-
local application_default =
|
|
54
|
-
local color =
|
|
55
|
-
local std =
|
|
2
|
+
local source_version_2454 = nil
|
|
3
|
+
local source_shared_engine_loadcore_245f = nil
|
|
4
|
+
local source_shared_engine_loadgame_246a = nil
|
|
5
|
+
local source_engine_api_data_encoder_247c = nil
|
|
6
|
+
local source_engine_api_system_app_2487 = nil
|
|
7
|
+
local source_engine_api_data_hash_2492 = nil
|
|
8
|
+
local source_engine_api_io_http_249d = nil
|
|
9
|
+
local source_engine_api_data_i18n_24a8 = nil
|
|
10
|
+
local source_engine_api_system_key_24b3 = nil
|
|
11
|
+
local source_engine_api_debug_log_24be = nil
|
|
12
|
+
local source_engine_api_math_basic_24c9 = nil
|
|
13
|
+
local source_engine_api_math_clib_24d4 = nil
|
|
14
|
+
local source_engine_api_math_random_24df = nil
|
|
15
|
+
local source_engine_api_data_array_24ea = nil
|
|
16
|
+
local source_engine_api_io_media_24f5 = nil
|
|
17
|
+
local source_engine_api_draw_fps_2500 = nil
|
|
18
|
+
local source_engine_api_draw_text_250b = nil
|
|
19
|
+
local source_engine_api_draw_poly_2516 = nil
|
|
20
|
+
local source_engine_api_raw_memory_2521 = nil
|
|
21
|
+
local source_engine_protocol_http_callback_2533 = nil
|
|
22
|
+
local source_shared_var_object_root_2545 = nil
|
|
23
|
+
local source_engine_api_system_color_2550 = nil
|
|
24
|
+
local source_shared_var_object_std_255b = nil
|
|
25
|
+
local source_shared_functional_pipeline_2a0d = nil
|
|
26
|
+
local source_shared_string_dsl_requires_2a18 = nil
|
|
27
|
+
local source_shared_string_eval_file_2c81 = nil
|
|
28
|
+
local source_shared_string_eval_code_2c8c = nil
|
|
29
|
+
local source_shared_functional_decorator_2f31 = nil
|
|
30
|
+
local source_shared_string_encode_http_5d3b = nil
|
|
31
|
+
local source_shared_string_encode_url_5d46 = nil
|
|
32
|
+
local function main_244b()
|
|
33
|
+
local version = source_version_2454()
|
|
34
|
+
local loadcore = source_shared_engine_loadcore_245f()
|
|
35
|
+
local loadgame = source_shared_engine_loadgame_246a()
|
|
36
|
+
local engine_encoder = source_engine_api_data_encoder_247c()
|
|
37
|
+
local engine_game = source_engine_api_system_app_2487()
|
|
38
|
+
local engine_hash = source_engine_api_data_hash_2492()
|
|
39
|
+
local engine_http = source_engine_api_io_http_249d()
|
|
40
|
+
local engine_i18n = source_engine_api_data_i18n_24a8()
|
|
41
|
+
local engine_key = source_engine_api_system_key_24b3()
|
|
42
|
+
local engine_log = source_engine_api_debug_log_24be()
|
|
43
|
+
local engine_math = source_engine_api_math_basic_24c9()
|
|
44
|
+
local engine_math_clib = source_engine_api_math_clib_24d4()
|
|
45
|
+
local engine_math_random = source_engine_api_math_random_24df()
|
|
46
|
+
local engine_array = source_engine_api_data_array_24ea()
|
|
47
|
+
local engine_media = source_engine_api_io_media_24f5()
|
|
48
|
+
local engine_api_draw_fps = source_engine_api_draw_fps_2500()
|
|
49
|
+
local engine_api_draw_text = source_engine_api_draw_text_250b()
|
|
50
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_2516()
|
|
51
|
+
local engine_raw_memory = source_engine_api_raw_memory_2521()
|
|
52
|
+
local callback_http = source_engine_protocol_http_callback_2533()
|
|
53
|
+
local application_default = source_shared_var_object_root_2545()
|
|
54
|
+
local color = source_engine_api_system_color_2550()
|
|
55
|
+
local std = source_shared_var_object_std_255b()
|
|
56
56
|
local application = application_default
|
|
57
57
|
local engine = {
|
|
58
58
|
keyboard = function(a, b, c, d) end,
|
|
@@ -210,13 +210,13 @@ version=version
|
|
|
210
210
|
}
|
|
211
211
|
return P
|
|
212
212
|
end
|
|
213
|
-
|
|
214
|
-
return '0.2.
|
|
213
|
+
source_version_2454 = function()
|
|
214
|
+
return '0.2.6'
|
|
215
215
|
end
|
|
216
216
|
--
|
|
217
|
-
|
|
218
|
-
local zeebo_pipeline =
|
|
219
|
-
local requires =
|
|
217
|
+
source_shared_engine_loadcore_245f = function()
|
|
218
|
+
local zeebo_pipeline = source_shared_functional_pipeline_2a0d()
|
|
219
|
+
local requires = source_shared_string_dsl_requires_2a18()
|
|
220
220
|
local function step_install_libsys(self, lib_name, library, custom, is_system)
|
|
221
221
|
if not is_system then return end
|
|
222
222
|
local ok, msg = pcall(function()
|
|
@@ -298,9 +298,9 @@ setup = setup
|
|
|
298
298
|
return P
|
|
299
299
|
end
|
|
300
300
|
--
|
|
301
|
-
|
|
302
|
-
local eval_file =
|
|
303
|
-
local eval_code =
|
|
301
|
+
source_shared_engine_loadgame_246a = function()
|
|
302
|
+
local eval_file = source_shared_string_eval_file_2c81()
|
|
303
|
+
local eval_code = source_shared_string_eval_code_2c8c()
|
|
304
304
|
local has_io_open = io and io.open
|
|
305
305
|
local function normalize(app, base)
|
|
306
306
|
if not app then return nil end
|
|
@@ -373,7 +373,7 @@ script = script
|
|
|
373
373
|
return P
|
|
374
374
|
end
|
|
375
375
|
--
|
|
376
|
-
|
|
376
|
+
source_engine_api_data_encoder_247c = function()
|
|
377
377
|
local function install(std, engine, library, name)
|
|
378
378
|
std = std or {}
|
|
379
379
|
std[name] = {
|
|
@@ -388,8 +388,8 @@ install=install
|
|
|
388
388
|
return P
|
|
389
389
|
end
|
|
390
390
|
--
|
|
391
|
-
|
|
392
|
-
local util_decorator =
|
|
391
|
+
source_engine_api_system_app_2487 = function()
|
|
392
|
+
local util_decorator = source_shared_functional_decorator_2f31()
|
|
393
393
|
local function reset(std, engine)
|
|
394
394
|
if std.node then
|
|
395
395
|
std.bus.emit('exit')
|
|
@@ -429,7 +429,7 @@ install=install
|
|
|
429
429
|
return P
|
|
430
430
|
end
|
|
431
431
|
--
|
|
432
|
-
|
|
432
|
+
source_engine_api_data_hash_2492 = function()
|
|
433
433
|
local function djb2(digest)
|
|
434
434
|
local index = 1
|
|
435
435
|
local hash = 5381
|
|
@@ -453,8 +453,8 @@ install = install
|
|
|
453
453
|
return P
|
|
454
454
|
end
|
|
455
455
|
--
|
|
456
|
-
|
|
457
|
-
local zeebo_pipeline =
|
|
456
|
+
source_engine_api_io_http_249d = function()
|
|
457
|
+
local zeebo_pipeline = source_shared_functional_pipeline_2a0d()
|
|
458
458
|
local function json(self)
|
|
459
459
|
self.options['json'] = true
|
|
460
460
|
return self
|
|
@@ -612,7 +612,7 @@ install=install
|
|
|
612
612
|
return P
|
|
613
613
|
end
|
|
614
614
|
--
|
|
615
|
-
|
|
615
|
+
source_engine_api_data_i18n_24a8 = function()
|
|
616
616
|
local language = 'en-US'
|
|
617
617
|
local language_default = 'en-US'
|
|
618
618
|
local language_list = {}
|
|
@@ -704,7 +704,7 @@ install=install
|
|
|
704
704
|
return P
|
|
705
705
|
end
|
|
706
706
|
--
|
|
707
|
-
|
|
707
|
+
source_engine_api_system_key_24b3 = function()
|
|
708
708
|
local function real_key(std, engine, rkey, rvalue)
|
|
709
709
|
local value = rvalue == 1 or rvalue == true
|
|
710
710
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -741,8 +741,8 @@ install = install
|
|
|
741
741
|
return P
|
|
742
742
|
end
|
|
743
743
|
--
|
|
744
|
-
|
|
745
|
-
local util_decorator =
|
|
744
|
+
source_engine_api_debug_log_24be = function()
|
|
745
|
+
local util_decorator = source_shared_functional_decorator_2f31()
|
|
746
746
|
local logging_types = {
|
|
747
747
|
'none', 'fatal', 'error', 'warn', 'debug', 'info'
|
|
748
748
|
}
|
|
@@ -788,7 +788,7 @@ install = install
|
|
|
788
788
|
return P
|
|
789
789
|
end
|
|
790
790
|
--
|
|
791
|
-
|
|
791
|
+
source_engine_api_math_basic_24c9 = function()
|
|
792
792
|
local function abs(value)
|
|
793
793
|
if value < 0 then
|
|
794
794
|
return -value
|
|
@@ -887,7 +887,7 @@ install = install
|
|
|
887
887
|
return P
|
|
888
888
|
end
|
|
889
889
|
--
|
|
890
|
-
|
|
890
|
+
source_engine_api_math_clib_24d4 = function()
|
|
891
891
|
local function install(std)
|
|
892
892
|
assert(math and (1/2 ~= 0))
|
|
893
893
|
std.math = std.math or {}
|
|
@@ -923,7 +923,7 @@ install = install
|
|
|
923
923
|
return P
|
|
924
924
|
end
|
|
925
925
|
--
|
|
926
|
-
|
|
926
|
+
source_engine_api_math_random_24df = function()
|
|
927
927
|
local function install(std)
|
|
928
928
|
assert(math and (1/2 ~= 0))
|
|
929
929
|
std.math = std.math or {}
|
|
@@ -940,8 +940,8 @@ install = install
|
|
|
940
940
|
return P
|
|
941
941
|
end
|
|
942
942
|
--
|
|
943
|
-
|
|
944
|
-
local util_decorator =
|
|
943
|
+
source_engine_api_data_array_24ea = function()
|
|
944
|
+
local util_decorator = source_shared_functional_decorator_2f31()
|
|
945
945
|
local function array_map(array, func)
|
|
946
946
|
local res = {}
|
|
947
947
|
local index = 1
|
|
@@ -1102,7 +1102,7 @@ install = install
|
|
|
1102
1102
|
return P
|
|
1103
1103
|
end
|
|
1104
1104
|
--
|
|
1105
|
-
|
|
1105
|
+
source_engine_api_io_media_24f5 = function()
|
|
1106
1106
|
local function media_create(node, channels, handler)
|
|
1107
1107
|
local decorator = function(func)
|
|
1108
1108
|
func = func or function() end
|
|
@@ -1148,7 +1148,7 @@ install=install
|
|
|
1148
1148
|
return P
|
|
1149
1149
|
end
|
|
1150
1150
|
--
|
|
1151
|
-
|
|
1151
|
+
source_engine_api_draw_fps_2500 = function()
|
|
1152
1152
|
local function draw_fps(std, engine, show, pos_x, pos_y)
|
|
1153
1153
|
if show < 1 then return end
|
|
1154
1154
|
local x = engine.current.config.offset_x + pos_x
|
|
@@ -1197,8 +1197,8 @@ install=install
|
|
|
1197
1197
|
return P
|
|
1198
1198
|
end
|
|
1199
1199
|
--
|
|
1200
|
-
|
|
1201
|
-
local util_decorator =
|
|
1200
|
+
source_engine_api_draw_text_250b = function()
|
|
1201
|
+
local util_decorator = source_shared_functional_decorator_2f31()
|
|
1202
1202
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
1203
1203
|
size = size or 2
|
|
1204
1204
|
local hem = engine.current.data.width / 80
|
|
@@ -1227,7 +1227,7 @@ install=install
|
|
|
1227
1227
|
return P
|
|
1228
1228
|
end
|
|
1229
1229
|
--
|
|
1230
|
-
|
|
1230
|
+
source_engine_api_draw_poly_2516 = function()
|
|
1231
1231
|
local function decorator_poo(object, func)
|
|
1232
1232
|
if not object or not func then return func end
|
|
1233
1233
|
return function(a, b, c, d)
|
|
@@ -1334,7 +1334,7 @@ install=install
|
|
|
1334
1334
|
return P
|
|
1335
1335
|
end
|
|
1336
1336
|
--
|
|
1337
|
-
|
|
1337
|
+
source_engine_api_raw_memory_2521 = function()
|
|
1338
1338
|
local memory_dict_unload = {}
|
|
1339
1339
|
local memory_dict = {}
|
|
1340
1340
|
local memory_list = {}
|
|
@@ -1389,9 +1389,9 @@ install=install
|
|
|
1389
1389
|
return P
|
|
1390
1390
|
end
|
|
1391
1391
|
--
|
|
1392
|
-
|
|
1393
|
-
local str_http =
|
|
1394
|
-
local str_url =
|
|
1392
|
+
source_engine_protocol_http_callback_2533 = function()
|
|
1393
|
+
local str_http = source_shared_string_encode_http_5d3b()
|
|
1394
|
+
local str_url = source_shared_string_encode_url_5d46()
|
|
1395
1395
|
local callbacks = {
|
|
1396
1396
|
['async-promise'] = function(self)
|
|
1397
1397
|
return self:promise()
|
|
@@ -1458,7 +1458,7 @@ func = native_http_callback
|
|
|
1458
1458
|
return P
|
|
1459
1459
|
end
|
|
1460
1460
|
--
|
|
1461
|
-
|
|
1461
|
+
source_shared_var_object_root_2545 = function()
|
|
1462
1462
|
local P = {
|
|
1463
1463
|
data={
|
|
1464
1464
|
width=1280,
|
|
@@ -1488,7 +1488,7 @@ callbacks={
|
|
|
1488
1488
|
return P;
|
|
1489
1489
|
end
|
|
1490
1490
|
--
|
|
1491
|
-
|
|
1491
|
+
source_engine_api_system_color_2550 = function()
|
|
1492
1492
|
local function install(std)
|
|
1493
1493
|
std.color = std.color or {}
|
|
1494
1494
|
std.color.white = 0xFFFFFFFF
|
|
@@ -1523,7 +1523,7 @@ install = install
|
|
|
1523
1523
|
return P
|
|
1524
1524
|
end
|
|
1525
1525
|
--
|
|
1526
|
-
|
|
1526
|
+
source_shared_var_object_std_255b = function()
|
|
1527
1527
|
local P = {
|
|
1528
1528
|
milis = 0,
|
|
1529
1529
|
delta = 0,
|
|
@@ -1591,7 +1591,7 @@ any=false
|
|
|
1591
1591
|
return P;
|
|
1592
1592
|
end
|
|
1593
1593
|
--
|
|
1594
|
-
|
|
1594
|
+
source_shared_functional_pipeline_2a0d = function()
|
|
1595
1595
|
local function pipe(self)
|
|
1596
1596
|
return function()
|
|
1597
1597
|
self:run()
|
|
@@ -1641,7 +1641,7 @@ run=run
|
|
|
1641
1641
|
return P
|
|
1642
1642
|
end
|
|
1643
1643
|
--
|
|
1644
|
-
|
|
1644
|
+
source_shared_string_dsl_requires_2a18 = function()
|
|
1645
1645
|
local function encode(dsl_string)
|
|
1646
1646
|
local spec = {
|
|
1647
1647
|
list = {},
|
|
@@ -1690,7 +1690,7 @@ should_import = should_import
|
|
|
1690
1690
|
return P
|
|
1691
1691
|
end
|
|
1692
1692
|
--
|
|
1693
|
-
|
|
1693
|
+
source_shared_string_eval_file_2c81 = function()
|
|
1694
1694
|
local function script(src)
|
|
1695
1695
|
local ok, app = false, nil
|
|
1696
1696
|
if require then
|
|
@@ -1716,7 +1716,7 @@ script = script,
|
|
|
1716
1716
|
return P
|
|
1717
1717
|
end
|
|
1718
1718
|
--
|
|
1719
|
-
|
|
1719
|
+
source_shared_string_eval_code_2c8c = function()
|
|
1720
1720
|
local function script(src)
|
|
1721
1721
|
local loader = loadstring or load
|
|
1722
1722
|
if not loader then
|
|
@@ -1737,7 +1737,7 @@ script = script,
|
|
|
1737
1737
|
return P
|
|
1738
1738
|
end
|
|
1739
1739
|
--
|
|
1740
|
-
|
|
1740
|
+
source_shared_functional_decorator_2f31 = function()
|
|
1741
1741
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
1742
1742
|
return function (a, b, c, d, e, f)
|
|
1743
1743
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -1795,7 +1795,7 @@ prefix1_t = table_prefix1
|
|
|
1795
1795
|
return P
|
|
1796
1796
|
end
|
|
1797
1797
|
--
|
|
1798
|
-
|
|
1798
|
+
source_shared_string_encode_http_5d3b = function()
|
|
1799
1799
|
local function is_ok(status)
|
|
1800
1800
|
return (status and 200 <= status and status < 300) or false
|
|
1801
1801
|
end
|
|
@@ -1942,7 +1942,7 @@ create_request=create_request
|
|
|
1942
1942
|
}
|
|
1943
1943
|
end
|
|
1944
1944
|
--
|
|
1945
|
-
|
|
1945
|
+
source_shared_string_encode_url_5d46 = function()
|
|
1946
1946
|
local function search_param(param_list, param_dict)
|
|
1947
1947
|
local index, params = 1, ''
|
|
1948
1948
|
while param_list and param_dict and index <= #param_list do
|
|
@@ -1964,4 +1964,4 @@ search_param = search_param
|
|
|
1964
1964
|
return P
|
|
1965
1965
|
end
|
|
1966
1966
|
--
|
|
1967
|
-
return
|
|
1967
|
+
return main_244b()
|