@gamely/gly-engine-lite 0.1.8 → 0.1.9
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 +98 -98
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
local
|
|
1
|
+
local b_23b0 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
|
|
2
2
|
local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
|
|
3
|
-
local function
|
|
4
|
-
local version =
|
|
5
|
-
local loadcore =
|
|
6
|
-
local loadgame =
|
|
7
|
-
local engine_encoder =
|
|
8
|
-
local engine_game =
|
|
9
|
-
local engine_hash =
|
|
10
|
-
local engine_http =
|
|
11
|
-
local engine_i18n =
|
|
12
|
-
local engine_key =
|
|
13
|
-
local engine_log =
|
|
14
|
-
local engine_math =
|
|
15
|
-
local engine_math_clib =
|
|
16
|
-
local engine_math_random =
|
|
17
|
-
local engine_array =
|
|
18
|
-
local engine_media =
|
|
19
|
-
local engine_api_draw_fps =
|
|
20
|
-
local engine_api_draw_text =
|
|
21
|
-
local engine_api_draw_poly =
|
|
22
|
-
local engine_raw_memory =
|
|
23
|
-
local callback_http =
|
|
24
|
-
local application_default =
|
|
25
|
-
local color =
|
|
26
|
-
local std =
|
|
3
|
+
local function main_23b0()
|
|
4
|
+
local version = b_23b0[1]('source_version')
|
|
5
|
+
local loadcore = b_23b0[2]('source_shared_engine_loadcore')
|
|
6
|
+
local loadgame = b_23b0[3]('source_shared_engine_loadgame')
|
|
7
|
+
local engine_encoder = b_23b0[4]('source_engine_api_data_encoder')
|
|
8
|
+
local engine_game = b_23b0[5]('source_engine_api_system_app')
|
|
9
|
+
local engine_hash = b_23b0[6]('source_engine_api_data_hash')
|
|
10
|
+
local engine_http = b_23b0[7]('source_engine_api_io_http')
|
|
11
|
+
local engine_i18n = b_23b0[8]('source_engine_api_data_i18n')
|
|
12
|
+
local engine_key = b_23b0[9]('source_engine_api_system_key')
|
|
13
|
+
local engine_log = b_23b0[10]('source_engine_api_debug_log')
|
|
14
|
+
local engine_math = b_23b0[11]('source_engine_api_math_basic')
|
|
15
|
+
local engine_math_clib = b_23b0[12]('source_engine_api_math_clib')
|
|
16
|
+
local engine_math_random = b_23b0[13]('source_engine_api_math_random')
|
|
17
|
+
local engine_array = b_23b0[14]('source_engine_api_data_array')
|
|
18
|
+
local engine_media = b_23b0[15]('source_engine_api_io_media')
|
|
19
|
+
local engine_api_draw_fps = b_23b0[16]('source_engine_api_draw_fps')
|
|
20
|
+
local engine_api_draw_text = b_23b0[17]('source_engine_api_draw_text')
|
|
21
|
+
local engine_api_draw_poly = b_23b0[18]('source_engine_api_draw_poly')
|
|
22
|
+
local engine_raw_memory = b_23b0[19]('source_engine_api_raw_memory')
|
|
23
|
+
local callback_http = b_23b0[20]('source_engine_protocol_http_callback')
|
|
24
|
+
local application_default = b_23b0[21]('source_shared_var_object_root')
|
|
25
|
+
local color = b_23b0[22]('source_engine_api_system_color')
|
|
26
|
+
local std = b_23b0[23]('source_shared_var_object_std')
|
|
27
27
|
local application = application_default
|
|
28
28
|
local engine = {
|
|
29
29
|
keyboard = function(a, b, c, d) end,
|
|
@@ -179,12 +179,12 @@ version=version
|
|
|
179
179
|
}
|
|
180
180
|
return P
|
|
181
181
|
end
|
|
182
|
-
|
|
183
|
-
return '0.1.
|
|
184
|
-
end)() or false;
|
|
185
|
-
|
|
186
|
-
local zeebo_pipeline =
|
|
187
|
-
local requires =
|
|
182
|
+
b_23b0[1] = function() local c = (function()
|
|
183
|
+
return '0.1.9'
|
|
184
|
+
end)() or false;b_23b0[1] = function() return c end return c end
|
|
185
|
+
b_23b0[2] = function() local c = (function()
|
|
186
|
+
local zeebo_pipeline = b_23b0[24]('source_shared_functional_pipeline')
|
|
187
|
+
local requires = b_23b0[25]('source_shared_string_dsl_requires')
|
|
188
188
|
local function step_install_libsys(self, lib_name, library, custom, is_system)
|
|
189
189
|
if not is_system then return end
|
|
190
190
|
local ok, msg = pcall(function()
|
|
@@ -264,10 +264,10 @@ local P = {
|
|
|
264
264
|
setup = setup
|
|
265
265
|
}
|
|
266
266
|
return P
|
|
267
|
-
end)() or false;
|
|
268
|
-
|
|
269
|
-
local eval_file =
|
|
270
|
-
local eval_code =
|
|
267
|
+
end)() or false;b_23b0[2] = function() return c end return c end
|
|
268
|
+
b_23b0[3] = function() local c = (function()
|
|
269
|
+
local eval_file = b_23b0[26]('source_shared_string_eval_file')
|
|
270
|
+
local eval_code = b_23b0[27]('source_shared_string_eval_code')
|
|
271
271
|
local has_io_open = io and io.open
|
|
272
272
|
local function normalize(app, base)
|
|
273
273
|
if not app then return nil end
|
|
@@ -338,8 +338,8 @@ local P = {
|
|
|
338
338
|
script = script
|
|
339
339
|
}
|
|
340
340
|
return P
|
|
341
|
-
end)() or false;
|
|
342
|
-
|
|
341
|
+
end)() or false;b_23b0[3] = function() return c end return c end
|
|
342
|
+
b_23b0[4] = function() local c = (function()
|
|
343
343
|
local function install(std, engine, library, name)
|
|
344
344
|
std = std or {}
|
|
345
345
|
std[name] = {
|
|
@@ -352,9 +352,9 @@ local P = {
|
|
|
352
352
|
install=install
|
|
353
353
|
}
|
|
354
354
|
return P
|
|
355
|
-
end)() or false;
|
|
356
|
-
|
|
357
|
-
local util_decorator =
|
|
355
|
+
end)() or false;b_23b0[4] = function() return c end return c end
|
|
356
|
+
b_23b0[5] = function() local c = (function()
|
|
357
|
+
local util_decorator = b_23b0[28]('source_shared_functional_decorator')
|
|
358
358
|
local function reset(std, engine)
|
|
359
359
|
if std.node then
|
|
360
360
|
std.bus.emit('exit')
|
|
@@ -392,8 +392,8 @@ local P = {
|
|
|
392
392
|
install=install
|
|
393
393
|
}
|
|
394
394
|
return P
|
|
395
|
-
end)() or false;
|
|
396
|
-
|
|
395
|
+
end)() or false;b_23b0[5] = function() return c end return c end
|
|
396
|
+
b_23b0[6] = function() local c = (function()
|
|
397
397
|
local function djb2(digest)
|
|
398
398
|
local index = 1
|
|
399
399
|
local hash = 5381
|
|
@@ -415,9 +415,9 @@ local P = {
|
|
|
415
415
|
install = install
|
|
416
416
|
}
|
|
417
417
|
return P
|
|
418
|
-
end)() or false;
|
|
419
|
-
|
|
420
|
-
local zeebo_pipeline =
|
|
418
|
+
end)() or false;b_23b0[6] = function() return c end return c end
|
|
419
|
+
b_23b0[7] = function() local c = (function()
|
|
420
|
+
local zeebo_pipeline = b_23b0[24]('source_shared_functional_pipeline')
|
|
421
421
|
local function json(self)
|
|
422
422
|
self.options['json'] = true
|
|
423
423
|
return self
|
|
@@ -573,8 +573,8 @@ local P = {
|
|
|
573
573
|
install=install
|
|
574
574
|
}
|
|
575
575
|
return P
|
|
576
|
-
end)() or false;
|
|
577
|
-
|
|
576
|
+
end)() or false;b_23b0[7] = function() return c end return c end
|
|
577
|
+
b_23b0[8] = function() local c = (function()
|
|
578
578
|
local language = 'en-US'
|
|
579
579
|
local language_default = 'en-US'
|
|
580
580
|
local language_list = {}
|
|
@@ -664,8 +664,8 @@ local P = {
|
|
|
664
664
|
install=install
|
|
665
665
|
}
|
|
666
666
|
return P
|
|
667
|
-
end)() or false;
|
|
668
|
-
|
|
667
|
+
end)() or false;b_23b0[8] = function() return c end return c end
|
|
668
|
+
b_23b0[9] = function() local c = (function()
|
|
669
669
|
local function real_key(std, engine, rkey, rvalue)
|
|
670
670
|
local value = rvalue == 1 or rvalue == true
|
|
671
671
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -700,9 +700,9 @@ local P = {
|
|
|
700
700
|
install = install
|
|
701
701
|
}
|
|
702
702
|
return P
|
|
703
|
-
end)() or false;
|
|
704
|
-
|
|
705
|
-
local util_decorator =
|
|
703
|
+
end)() or false;b_23b0[9] = function() return c end return c end
|
|
704
|
+
b_23b0[10] = function() local c = (function()
|
|
705
|
+
local util_decorator = b_23b0[28]('source_shared_functional_decorator')
|
|
706
706
|
local logging_types = {
|
|
707
707
|
'none', 'fatal', 'error', 'warn', 'debug', 'info'
|
|
708
708
|
}
|
|
@@ -746,8 +746,8 @@ local P = {
|
|
|
746
746
|
install = install
|
|
747
747
|
}
|
|
748
748
|
return P
|
|
749
|
-
end)() or false;
|
|
750
|
-
|
|
749
|
+
end)() or false;b_23b0[10] = function() return c end return c end
|
|
750
|
+
b_23b0[11] = function() local c = (function()
|
|
751
751
|
local function abs(value)
|
|
752
752
|
if value < 0 then
|
|
753
753
|
return -value
|
|
@@ -844,8 +844,8 @@ local P = {
|
|
|
844
844
|
install = install
|
|
845
845
|
}
|
|
846
846
|
return P
|
|
847
|
-
end)() or false;
|
|
848
|
-
|
|
847
|
+
end)() or false;b_23b0[11] = function() return c end return c end
|
|
848
|
+
b_23b0[12] = function() local c = (function()
|
|
849
849
|
local function install(std)
|
|
850
850
|
assert(math and (1/2 ~= 0))
|
|
851
851
|
std.math = std.math or {}
|
|
@@ -879,8 +879,8 @@ local P = {
|
|
|
879
879
|
install = install
|
|
880
880
|
}
|
|
881
881
|
return P
|
|
882
|
-
end)() or false;
|
|
883
|
-
|
|
882
|
+
end)() or false;b_23b0[12] = function() return c end return c end
|
|
883
|
+
b_23b0[13] = function() local c = (function()
|
|
884
884
|
local function install(std)
|
|
885
885
|
assert(math and (1/2 ~= 0))
|
|
886
886
|
std.math = std.math or {}
|
|
@@ -895,9 +895,9 @@ local P = {
|
|
|
895
895
|
install = install
|
|
896
896
|
}
|
|
897
897
|
return P
|
|
898
|
-
end)() or false;
|
|
899
|
-
|
|
900
|
-
local util_decorator =
|
|
898
|
+
end)() or false;b_23b0[13] = function() return c end return c end
|
|
899
|
+
b_23b0[14] = function() local c = (function()
|
|
900
|
+
local util_decorator = b_23b0[28]('source_shared_functional_decorator')
|
|
901
901
|
local function array_map(array, func)
|
|
902
902
|
local res = {}
|
|
903
903
|
local index = 1
|
|
@@ -1056,8 +1056,8 @@ local P = {
|
|
|
1056
1056
|
install = install
|
|
1057
1057
|
}
|
|
1058
1058
|
return P
|
|
1059
|
-
end)() or false;
|
|
1060
|
-
|
|
1059
|
+
end)() or false;b_23b0[14] = function() return c end return c end
|
|
1060
|
+
b_23b0[15] = function() local c = (function()
|
|
1061
1061
|
local function media_create(node, channels, handler)
|
|
1062
1062
|
local decorator = function(func)
|
|
1063
1063
|
func = func or function() end
|
|
@@ -1102,8 +1102,8 @@ local P = {
|
|
|
1102
1102
|
install=install
|
|
1103
1103
|
}
|
|
1104
1104
|
return P
|
|
1105
|
-
end)() or false;
|
|
1106
|
-
|
|
1105
|
+
end)() or false;b_23b0[15] = function() return c end return c end
|
|
1106
|
+
b_23b0[16] = function() local c = (function()
|
|
1107
1107
|
local function draw_fps(std, engine, show, pos_x, pos_y)
|
|
1108
1108
|
if show < 1 then return end
|
|
1109
1109
|
local x = engine.current.config.offset_x + pos_x
|
|
@@ -1150,9 +1150,9 @@ local P = {
|
|
|
1150
1150
|
install=install
|
|
1151
1151
|
}
|
|
1152
1152
|
return P
|
|
1153
|
-
end)() or false;
|
|
1154
|
-
|
|
1155
|
-
local util_decorator =
|
|
1153
|
+
end)() or false;b_23b0[16] = function() return c end return c end
|
|
1154
|
+
b_23b0[17] = function() local c = (function()
|
|
1155
|
+
local util_decorator = b_23b0[28]('source_shared_functional_decorator')
|
|
1156
1156
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
1157
1157
|
size = size or 2
|
|
1158
1158
|
local hem = engine.current.data.width / 80
|
|
@@ -1179,8 +1179,8 @@ local P = {
|
|
|
1179
1179
|
install=install
|
|
1180
1180
|
}
|
|
1181
1181
|
return P
|
|
1182
|
-
end)() or false;
|
|
1183
|
-
|
|
1182
|
+
end)() or false;b_23b0[17] = function() return c end return c end
|
|
1183
|
+
b_23b0[18] = function() local c = (function()
|
|
1184
1184
|
local function decorator_poo(object, func)
|
|
1185
1185
|
if not object or not func then return func end
|
|
1186
1186
|
return function(a, b, c, d)
|
|
@@ -1285,8 +1285,8 @@ local P = {
|
|
|
1285
1285
|
install=install
|
|
1286
1286
|
}
|
|
1287
1287
|
return P
|
|
1288
|
-
end)() or false;
|
|
1289
|
-
|
|
1288
|
+
end)() or false;b_23b0[18] = function() return c end return c end
|
|
1289
|
+
b_23b0[19] = function() local c = (function()
|
|
1290
1290
|
local memory_dict_unload = {}
|
|
1291
1291
|
local memory_dict = {}
|
|
1292
1292
|
local memory_list = {}
|
|
@@ -1339,10 +1339,10 @@ local P = {
|
|
|
1339
1339
|
install=install
|
|
1340
1340
|
}
|
|
1341
1341
|
return P
|
|
1342
|
-
end)() or false;
|
|
1343
|
-
|
|
1344
|
-
local str_http =
|
|
1345
|
-
local str_url =
|
|
1342
|
+
end)() or false;b_23b0[19] = function() return c end return c end
|
|
1343
|
+
b_23b0[20] = function() local c = (function()
|
|
1344
|
+
local str_http = b_23b0[30]('source_shared_string_encode_http')
|
|
1345
|
+
local str_url = b_23b0[31]('source_shared_string_encode_url')
|
|
1346
1346
|
local callbacks = {
|
|
1347
1347
|
['async-promise'] = function(self)
|
|
1348
1348
|
return self:promise()
|
|
@@ -1407,8 +1407,8 @@ local P = {
|
|
|
1407
1407
|
func = native_http_callback
|
|
1408
1408
|
}
|
|
1409
1409
|
return P
|
|
1410
|
-
end)() or false;
|
|
1411
|
-
|
|
1410
|
+
end)() or false;b_23b0[20] = function() return c end return c end
|
|
1411
|
+
b_23b0[21] = function() local c = (function()
|
|
1412
1412
|
local P = {
|
|
1413
1413
|
data={
|
|
1414
1414
|
width=1280,
|
|
@@ -1436,8 +1436,8 @@ callbacks={
|
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
return P;
|
|
1439
|
-
end)() or false;
|
|
1440
|
-
|
|
1439
|
+
end)() or false;b_23b0[21] = function() return c end return c end
|
|
1440
|
+
b_23b0[22] = function() local c = (function()
|
|
1441
1441
|
local function install(std)
|
|
1442
1442
|
std.color = std.color or {}
|
|
1443
1443
|
std.color.white = 0xFFFFFFFF
|
|
@@ -1470,8 +1470,8 @@ local P = {
|
|
|
1470
1470
|
install = install
|
|
1471
1471
|
}
|
|
1472
1472
|
return P
|
|
1473
|
-
end)() or false;
|
|
1474
|
-
|
|
1473
|
+
end)() or false;b_23b0[22] = function() return c end return c end
|
|
1474
|
+
b_23b0[23] = function() local c = (function()
|
|
1475
1475
|
local P = {
|
|
1476
1476
|
milis = 0,
|
|
1477
1477
|
delta = 0,
|
|
@@ -1537,8 +1537,8 @@ any=false
|
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
return P;
|
|
1540
|
-
end)() or false;
|
|
1541
|
-
|
|
1540
|
+
end)() or false;b_23b0[23] = function() return c end return c end
|
|
1541
|
+
b_23b0[24] = function() local c = (function()
|
|
1542
1542
|
local function pipe(self)
|
|
1543
1543
|
return function()
|
|
1544
1544
|
self:run()
|
|
@@ -1586,8 +1586,8 @@ resume=resume,
|
|
|
1586
1586
|
run=run
|
|
1587
1587
|
}
|
|
1588
1588
|
return P
|
|
1589
|
-
end)() or false;
|
|
1590
|
-
|
|
1589
|
+
end)() or false;b_23b0[24] = function() return c end return c end
|
|
1590
|
+
b_23b0[25] = function() local c = (function()
|
|
1591
1591
|
local function encode(dsl_string)
|
|
1592
1592
|
local spec = {
|
|
1593
1593
|
list = {},
|
|
@@ -1634,8 +1634,8 @@ missing = missing,
|
|
|
1634
1634
|
should_import = should_import
|
|
1635
1635
|
}
|
|
1636
1636
|
return P
|
|
1637
|
-
end)() or false;
|
|
1638
|
-
|
|
1637
|
+
end)() or false;b_23b0[25] = function() return c end return c end
|
|
1638
|
+
b_23b0[26] = function() local c = (function()
|
|
1639
1639
|
local function script(src)
|
|
1640
1640
|
local ok, app = false, nil
|
|
1641
1641
|
if require then
|
|
@@ -1659,8 +1659,8 @@ local P = {
|
|
|
1659
1659
|
script = script,
|
|
1660
1660
|
}
|
|
1661
1661
|
return P
|
|
1662
|
-
end)() or false;
|
|
1663
|
-
|
|
1662
|
+
end)() or false;b_23b0[26] = function() return c end return c end
|
|
1663
|
+
b_23b0[27] = function() local c = (function()
|
|
1664
1664
|
local function script(src)
|
|
1665
1665
|
local loader = loadstring or load
|
|
1666
1666
|
if not loader then
|
|
@@ -1679,8 +1679,8 @@ local P = {
|
|
|
1679
1679
|
script = script,
|
|
1680
1680
|
}
|
|
1681
1681
|
return P
|
|
1682
|
-
end)() or false;
|
|
1683
|
-
|
|
1682
|
+
end)() or false;b_23b0[27] = function() return c end return c end
|
|
1683
|
+
b_23b0[28] = function() local c = (function()
|
|
1684
1684
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
1685
1685
|
return function (a, b, c, d, e, f)
|
|
1686
1686
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -1736,8 +1736,8 @@ prefix1 = decorator_prefix1,
|
|
|
1736
1736
|
prefix1_t = table_prefix1
|
|
1737
1737
|
}
|
|
1738
1738
|
return P
|
|
1739
|
-
end)() or false;
|
|
1740
|
-
|
|
1739
|
+
end)() or false;b_23b0[28] = function() return c end return c end
|
|
1740
|
+
b_23b0[30] = function() local c = (function()
|
|
1741
1741
|
local function is_ok(status)
|
|
1742
1742
|
return (status and 200 <= status and status < 300) or false
|
|
1743
1743
|
end
|
|
@@ -1882,8 +1882,8 @@ get_content=get_content,
|
|
|
1882
1882
|
get_user_agent=get_user_agent,
|
|
1883
1883
|
create_request=create_request
|
|
1884
1884
|
}
|
|
1885
|
-
end)() or false;
|
|
1886
|
-
|
|
1885
|
+
end)() or false;b_23b0[30] = function() return c end return c end
|
|
1886
|
+
b_23b0[31] = function() local c = (function()
|
|
1887
1887
|
local function search_param(param_list, param_dict)
|
|
1888
1888
|
local index, params = 1, ''
|
|
1889
1889
|
while param_list and param_dict and index <= #param_list do
|
|
@@ -1903,5 +1903,5 @@ local P = {
|
|
|
1903
1903
|
search_param = search_param
|
|
1904
1904
|
}
|
|
1905
1905
|
return P
|
|
1906
|
-
end)() or false;
|
|
1907
|
-
return
|
|
1906
|
+
end)() or false;b_23b0[31] = function() return c end return c end
|
|
1907
|
+
return main_23b0()
|