@gamely/gly-engine-lite 0.1.0 → 0.1.1
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 +80 -80
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
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 function
|
|
27
|
-
local version =
|
|
28
|
-
local zeebo_module =
|
|
29
|
-
local engine_encoder =
|
|
30
|
-
local engine_game =
|
|
31
|
-
local engine_hash =
|
|
32
|
-
local engine_http =
|
|
33
|
-
local engine_i18n =
|
|
34
|
-
local engine_key =
|
|
35
|
-
local engine_log =
|
|
36
|
-
local engine_math =
|
|
37
|
-
local engine_array =
|
|
38
|
-
local engine_media =
|
|
39
|
-
local engine_api_draw_fps =
|
|
40
|
-
local engine_api_draw_text =
|
|
41
|
-
local engine_api_draw_poly =
|
|
42
|
-
local engine_raw_memory =
|
|
43
|
-
local callback_http =
|
|
44
|
-
local application_default =
|
|
45
|
-
local color =
|
|
46
|
-
local std =
|
|
2
|
+
local source_version_55e9adc93630 = nil
|
|
3
|
+
local source_shared_module_55e9adcfcee0 = nil
|
|
4
|
+
local source_engine_api_data_encoder_55e9adcde7b0 = nil
|
|
5
|
+
local source_engine_api_system_app_55e9add022a0 = nil
|
|
6
|
+
local source_engine_api_data_hash_55e9adcec2d0 = nil
|
|
7
|
+
local source_engine_api_io_http_55e9add09cc0 = nil
|
|
8
|
+
local source_engine_api_data_i18n_55e9adcfb4b0 = nil
|
|
9
|
+
local source_engine_api_system_key_55e9adcdd690 = nil
|
|
10
|
+
local source_engine_api_debug_log_55e9adc93400 = nil
|
|
11
|
+
local source_engine_api_system_math_55e9add12fd0 = nil
|
|
12
|
+
local source_engine_api_data_array_55e9add03280 = nil
|
|
13
|
+
local source_engine_api_io_media_55e9add024e0 = nil
|
|
14
|
+
local source_engine_api_draw_fps_55e9add01370 = nil
|
|
15
|
+
local source_engine_api_draw_text_55e9adcfd720 = nil
|
|
16
|
+
local source_engine_api_draw_poly_55e9add12880 = nil
|
|
17
|
+
local source_engine_api_raw_memory_55e9add0b7e0 = nil
|
|
18
|
+
local source_engine_protocol_http_callback_55e9adcfea60 = nil
|
|
19
|
+
local source_shared_var_object_root_55e9add070f0 = nil
|
|
20
|
+
local source_engine_api_system_color_55e9adc94310 = nil
|
|
21
|
+
local source_shared_var_object_std_55e9adc94a00 = nil
|
|
22
|
+
local source_shared_functional_pipeline_55e9adca5c50 = nil
|
|
23
|
+
local source_shared_functional_decorator_55e9adca5750 = nil
|
|
24
|
+
local source_shared_string_encode_http_55e9add02410 = nil
|
|
25
|
+
local source_shared_string_encode_url_55e9adca91f0 = nil
|
|
26
|
+
local function main_55e9adc932d0()
|
|
27
|
+
local version = source_version_55e9adc93630()
|
|
28
|
+
local zeebo_module = source_shared_module_55e9adcfcee0()
|
|
29
|
+
local engine_encoder = source_engine_api_data_encoder_55e9adcde7b0()
|
|
30
|
+
local engine_game = source_engine_api_system_app_55e9add022a0()
|
|
31
|
+
local engine_hash = source_engine_api_data_hash_55e9adcec2d0()
|
|
32
|
+
local engine_http = source_engine_api_io_http_55e9add09cc0()
|
|
33
|
+
local engine_i18n = source_engine_api_data_i18n_55e9adcfb4b0()
|
|
34
|
+
local engine_key = source_engine_api_system_key_55e9adcdd690()
|
|
35
|
+
local engine_log = source_engine_api_debug_log_55e9adc93400()
|
|
36
|
+
local engine_math = source_engine_api_system_math_55e9add12fd0()
|
|
37
|
+
local engine_array = source_engine_api_data_array_55e9add03280()
|
|
38
|
+
local engine_media = source_engine_api_io_media_55e9add024e0()
|
|
39
|
+
local engine_api_draw_fps = source_engine_api_draw_fps_55e9add01370()
|
|
40
|
+
local engine_api_draw_text = source_engine_api_draw_text_55e9adcfd720()
|
|
41
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_55e9add12880()
|
|
42
|
+
local engine_raw_memory = source_engine_api_raw_memory_55e9add0b7e0()
|
|
43
|
+
local callback_http = source_engine_protocol_http_callback_55e9adcfea60()
|
|
44
|
+
local application_default = source_shared_var_object_root_55e9add070f0()
|
|
45
|
+
local color = source_engine_api_system_color_55e9adc94310()
|
|
46
|
+
local std = source_shared_var_object_std_55e9adc94a00()
|
|
47
47
|
local application = application_default
|
|
48
48
|
local engine = {
|
|
49
49
|
keyboard = function(a, b, c, d) end,
|
|
@@ -203,13 +203,13 @@ version=version
|
|
|
203
203
|
}
|
|
204
204
|
return P
|
|
205
205
|
end
|
|
206
|
-
|
|
207
|
-
return '0.1.
|
|
206
|
+
source_version_55e9adc93630 = function()
|
|
207
|
+
return '0.1.1'
|
|
208
208
|
end
|
|
209
209
|
--
|
|
210
|
-
|
|
211
|
-
local zeebo_pipeline =
|
|
212
|
-
local application_default =
|
|
210
|
+
source_shared_module_55e9adcfcee0 = function()
|
|
211
|
+
local zeebo_pipeline = source_shared_functional_pipeline_55e9adca5c50()
|
|
212
|
+
local application_default = source_shared_var_object_root_55e9add070f0()
|
|
213
213
|
local function default(application, defaults)
|
|
214
214
|
if not application then return nil end
|
|
215
215
|
local index = 1
|
|
@@ -411,7 +411,7 @@ require = require
|
|
|
411
411
|
return P
|
|
412
412
|
end
|
|
413
413
|
--
|
|
414
|
-
|
|
414
|
+
source_engine_api_data_encoder_55e9adcde7b0 = function()
|
|
415
415
|
local function install(std, engine, library, name)
|
|
416
416
|
std = std or {}
|
|
417
417
|
std[name] = {
|
|
@@ -426,8 +426,8 @@ install=install
|
|
|
426
426
|
return P
|
|
427
427
|
end
|
|
428
428
|
--
|
|
429
|
-
|
|
430
|
-
local util_decorator =
|
|
429
|
+
source_engine_api_system_app_55e9add022a0 = function()
|
|
430
|
+
local util_decorator = source_shared_functional_decorator_55e9adca5750()
|
|
431
431
|
local function reset(std, engine)
|
|
432
432
|
if std.node then
|
|
433
433
|
std.bus.emit('exit')
|
|
@@ -467,7 +467,7 @@ install=install
|
|
|
467
467
|
return P
|
|
468
468
|
end
|
|
469
469
|
--
|
|
470
|
-
|
|
470
|
+
source_engine_api_data_hash_55e9adcec2d0 = function()
|
|
471
471
|
local function djb2(digest)
|
|
472
472
|
local index = 1
|
|
473
473
|
local hash = 5381
|
|
@@ -491,8 +491,8 @@ install = install
|
|
|
491
491
|
return P
|
|
492
492
|
end
|
|
493
493
|
--
|
|
494
|
-
|
|
495
|
-
local zeebo_pipeline =
|
|
494
|
+
source_engine_api_io_http_55e9add09cc0 = function()
|
|
495
|
+
local zeebo_pipeline = source_shared_functional_pipeline_55e9adca5c50()
|
|
496
496
|
local function json(self)
|
|
497
497
|
self.options['json'] = true
|
|
498
498
|
return self
|
|
@@ -655,7 +655,7 @@ install=install
|
|
|
655
655
|
return P
|
|
656
656
|
end
|
|
657
657
|
--
|
|
658
|
-
|
|
658
|
+
source_engine_api_data_i18n_55e9adcfb4b0 = function()
|
|
659
659
|
local language = 'en-US'
|
|
660
660
|
local language_default = 'en-US'
|
|
661
661
|
local language_list = {}
|
|
@@ -747,7 +747,7 @@ install=install
|
|
|
747
747
|
return P
|
|
748
748
|
end
|
|
749
749
|
--
|
|
750
|
-
|
|
750
|
+
source_engine_api_system_key_55e9adcdd690 = function()
|
|
751
751
|
local function real_key(std, engine, rkey, rvalue)
|
|
752
752
|
local value = rvalue == 1 or rvalue == true
|
|
753
753
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -787,8 +787,8 @@ install = install
|
|
|
787
787
|
return P
|
|
788
788
|
end
|
|
789
789
|
--
|
|
790
|
-
|
|
791
|
-
local util_decorator =
|
|
790
|
+
source_engine_api_debug_log_55e9adc93400 = function()
|
|
791
|
+
local util_decorator = source_shared_functional_decorator_55e9adca5750()
|
|
792
792
|
local logging_types = {
|
|
793
793
|
'none', 'fatal', 'error', 'warn', 'debug', 'info'
|
|
794
794
|
}
|
|
@@ -834,7 +834,7 @@ install = install
|
|
|
834
834
|
return P
|
|
835
835
|
end
|
|
836
836
|
--
|
|
837
|
-
|
|
837
|
+
source_engine_api_system_math_55e9add12fd0 = function()
|
|
838
838
|
local function abs(value)
|
|
839
839
|
if value < 0 then
|
|
840
840
|
return -value
|
|
@@ -1009,8 +1009,8 @@ install = install_clib_random
|
|
|
1009
1009
|
return P;
|
|
1010
1010
|
end
|
|
1011
1011
|
--
|
|
1012
|
-
|
|
1013
|
-
local util_decorator =
|
|
1012
|
+
source_engine_api_data_array_55e9add03280 = function()
|
|
1013
|
+
local util_decorator = source_shared_functional_decorator_55e9adca5750()
|
|
1014
1014
|
local function array_map(array, func)
|
|
1015
1015
|
local res = {}
|
|
1016
1016
|
local index = 1
|
|
@@ -1171,7 +1171,7 @@ install = install
|
|
|
1171
1171
|
return P
|
|
1172
1172
|
end
|
|
1173
1173
|
--
|
|
1174
|
-
|
|
1174
|
+
source_engine_api_io_media_55e9add024e0 = function()
|
|
1175
1175
|
local function media_create(node, channels, handler)
|
|
1176
1176
|
local decorator = function(func)
|
|
1177
1177
|
func = func or function() end
|
|
@@ -1218,7 +1218,7 @@ install=install
|
|
|
1218
1218
|
return P
|
|
1219
1219
|
end
|
|
1220
1220
|
--
|
|
1221
|
-
|
|
1221
|
+
source_engine_api_draw_fps_55e9add01370 = function()
|
|
1222
1222
|
local function draw_fps(std, engine, show, pos_x, pos_y)
|
|
1223
1223
|
if show < 1 then return end
|
|
1224
1224
|
local x = engine.current.config.offset_x + pos_x
|
|
@@ -1270,8 +1270,8 @@ install=install
|
|
|
1270
1270
|
return P
|
|
1271
1271
|
end
|
|
1272
1272
|
--
|
|
1273
|
-
|
|
1274
|
-
local util_decorator =
|
|
1273
|
+
source_engine_api_draw_text_55e9adcfd720 = function()
|
|
1274
|
+
local util_decorator = source_shared_functional_decorator_55e9adca5750()
|
|
1275
1275
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
1276
1276
|
size = size or 2
|
|
1277
1277
|
local hem = engine.current.data.width / 80
|
|
@@ -1298,7 +1298,7 @@ install=install
|
|
|
1298
1298
|
return P
|
|
1299
1299
|
end
|
|
1300
1300
|
--
|
|
1301
|
-
|
|
1301
|
+
source_engine_api_draw_poly_55e9add12880 = function()
|
|
1302
1302
|
local function decorator_poo(object, func)
|
|
1303
1303
|
if not object or not func then return func end
|
|
1304
1304
|
return function(a, b, c, d)
|
|
@@ -1405,7 +1405,7 @@ install=install
|
|
|
1405
1405
|
return P
|
|
1406
1406
|
end
|
|
1407
1407
|
--
|
|
1408
|
-
|
|
1408
|
+
source_engine_api_raw_memory_55e9add0b7e0 = function()
|
|
1409
1409
|
local memory_dict_unload = {}
|
|
1410
1410
|
local memory_dict = {}
|
|
1411
1411
|
local memory_list = {}
|
|
@@ -1460,9 +1460,9 @@ install=install
|
|
|
1460
1460
|
return P
|
|
1461
1461
|
end
|
|
1462
1462
|
--
|
|
1463
|
-
|
|
1464
|
-
local str_http =
|
|
1465
|
-
local str_url =
|
|
1463
|
+
source_engine_protocol_http_callback_55e9adcfea60 = function()
|
|
1464
|
+
local str_http = source_shared_string_encode_http_55e9add02410()
|
|
1465
|
+
local str_url = source_shared_string_encode_url_55e9adca91f0()
|
|
1466
1466
|
local callbacks = {
|
|
1467
1467
|
['async-promise'] = function(self)
|
|
1468
1468
|
return self:promise()
|
|
@@ -1529,7 +1529,7 @@ func = native_http_callback
|
|
|
1529
1529
|
return P
|
|
1530
1530
|
end
|
|
1531
1531
|
--
|
|
1532
|
-
|
|
1532
|
+
source_shared_var_object_root_55e9add070f0 = function()
|
|
1533
1533
|
local P = {
|
|
1534
1534
|
data={
|
|
1535
1535
|
width=1280,
|
|
@@ -1559,7 +1559,7 @@ callbacks={
|
|
|
1559
1559
|
return P;
|
|
1560
1560
|
end
|
|
1561
1561
|
--
|
|
1562
|
-
|
|
1562
|
+
source_engine_api_system_color_55e9adc94310 = function()
|
|
1563
1563
|
local function install(std)
|
|
1564
1564
|
std.color = std.color or {}
|
|
1565
1565
|
std.color.white = 0xFFFFFFFF
|
|
@@ -1594,7 +1594,7 @@ install = install
|
|
|
1594
1594
|
return P
|
|
1595
1595
|
end
|
|
1596
1596
|
--
|
|
1597
|
-
|
|
1597
|
+
source_shared_var_object_std_55e9adc94a00 = function()
|
|
1598
1598
|
local P = {
|
|
1599
1599
|
milis = 0,
|
|
1600
1600
|
delta = 0,
|
|
@@ -1660,7 +1660,7 @@ any=false
|
|
|
1660
1660
|
return P;
|
|
1661
1661
|
end
|
|
1662
1662
|
--
|
|
1663
|
-
|
|
1663
|
+
source_shared_functional_pipeline_55e9adca5c50 = function()
|
|
1664
1664
|
local function pipe(self)
|
|
1665
1665
|
return function()
|
|
1666
1666
|
self:run()
|
|
@@ -1710,7 +1710,7 @@ run=run
|
|
|
1710
1710
|
return P
|
|
1711
1711
|
end
|
|
1712
1712
|
--
|
|
1713
|
-
|
|
1713
|
+
source_shared_functional_decorator_55e9adca5750 = function()
|
|
1714
1714
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
1715
1715
|
return function (a, b, c, d, e, f)
|
|
1716
1716
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -1768,7 +1768,7 @@ prefix1_t = table_prefix1
|
|
|
1768
1768
|
return P
|
|
1769
1769
|
end
|
|
1770
1770
|
--
|
|
1771
|
-
|
|
1771
|
+
source_shared_string_encode_http_55e9add02410 = function()
|
|
1772
1772
|
local function is_ok(status)
|
|
1773
1773
|
return (status and 200 <= status and status < 300) or false
|
|
1774
1774
|
end
|
|
@@ -1915,7 +1915,7 @@ create_request=create_request
|
|
|
1915
1915
|
}
|
|
1916
1916
|
end
|
|
1917
1917
|
--
|
|
1918
|
-
|
|
1918
|
+
source_shared_string_encode_url_55e9adca91f0 = function()
|
|
1919
1919
|
local function search_param(param_list, param_dict)
|
|
1920
1920
|
local index, params = 1, ''
|
|
1921
1921
|
while param_list and param_dict and index <= #param_list do
|
|
@@ -1937,4 +1937,4 @@ search_param = search_param
|
|
|
1937
1937
|
return P
|
|
1938
1938
|
end
|
|
1939
1939
|
--
|
|
1940
|
-
return
|
|
1940
|
+
return main_55e9adc932d0()
|