@gamely/gly-engine-lite 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/main.lua +100 -159
  2. package/package.json +1 -1
package/dist/main.lua CHANGED
@@ -1,58 +1,29 @@
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}
1
2
  local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
2
- local source_version_23ba = nil
3
- local source_shared_engine_loadcore_23c5 = nil
4
- local source_shared_engine_loadgame_23d0 = nil
5
- local source_engine_api_data_encoder_23e2 = nil
6
- local source_engine_api_system_app_23ed = nil
7
- local source_engine_api_data_hash_23f8 = nil
8
- local source_engine_api_io_http_2403 = nil
9
- local source_engine_api_data_i18n_240e = nil
10
- local source_engine_api_system_key_2419 = nil
11
- local source_engine_api_debug_log_2424 = nil
12
- local source_engine_api_math_basic_242f = nil
13
- local source_engine_api_math_clib_243a = nil
14
- local source_engine_api_math_random_2445 = nil
15
- local source_engine_api_data_array_2450 = nil
16
- local source_engine_api_io_media_245b = nil
17
- local source_engine_api_draw_fps_2466 = nil
18
- local source_engine_api_draw_text_2471 = nil
19
- local source_engine_api_draw_poly_247c = nil
20
- local source_engine_api_raw_memory_2487 = nil
21
- local source_engine_protocol_http_callback_2499 = nil
22
- local source_shared_var_object_root_24ab = nil
23
- local source_engine_api_system_color_24b6 = nil
24
- local source_shared_var_object_std_24c1 = nil
25
- local source_shared_functional_pipeline_2961 = nil
26
- local source_shared_string_dsl_requires_296c = nil
27
- local source_shared_string_eval_file_2bd3 = nil
28
- local source_shared_string_eval_code_2bde = nil
29
- local source_shared_functional_decorator_2e7f = nil
30
- local source_shared_string_encode_http_5c72 = nil
31
- local source_shared_string_encode_url_5c7d = nil
32
- local function main_23b1()
33
- local version = source_version_23ba()
34
- local loadcore = source_shared_engine_loadcore_23c5()
35
- local loadgame = source_shared_engine_loadgame_23d0()
36
- local engine_encoder = source_engine_api_data_encoder_23e2()
37
- local engine_game = source_engine_api_system_app_23ed()
38
- local engine_hash = source_engine_api_data_hash_23f8()
39
- local engine_http = source_engine_api_io_http_2403()
40
- local engine_i18n = source_engine_api_data_i18n_240e()
41
- local engine_key = source_engine_api_system_key_2419()
42
- local engine_log = source_engine_api_debug_log_2424()
43
- local engine_math = source_engine_api_math_basic_242f()
44
- local engine_math_clib = source_engine_api_math_clib_243a()
45
- local engine_math_random = source_engine_api_math_random_2445()
46
- local engine_array = source_engine_api_data_array_2450()
47
- local engine_media = source_engine_api_io_media_245b()
48
- local engine_api_draw_fps = source_engine_api_draw_fps_2466()
49
- local engine_api_draw_text = source_engine_api_draw_text_2471()
50
- local engine_api_draw_poly = source_engine_api_draw_poly_247c()
51
- local engine_raw_memory = source_engine_api_raw_memory_2487()
52
- local callback_http = source_engine_protocol_http_callback_2499()
53
- local application_default = source_shared_var_object_root_24ab()
54
- local color = source_engine_api_system_color_24b6()
55
- local std = source_shared_var_object_std_24c1()
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')
56
27
  local application = application_default
57
28
  local engine = {
58
29
  keyboard = function(a, b, c, d) end,
@@ -208,13 +179,12 @@ version=version
208
179
  }
209
180
  return P
210
181
  end
211
- source_version_23ba = function()
212
- return '0.1.5'
213
- end
214
- --
215
- source_shared_engine_loadcore_23c5 = function()
216
- local zeebo_pipeline = source_shared_functional_pipeline_2961()
217
- local requires = source_shared_string_dsl_requires_296c()
182
+ b_23b0[1] = function() local c = (function()
183
+ return '0.1.7'
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')
218
188
  local function step_install_libsys(self, lib_name, library, custom, is_system)
219
189
  if not is_system then return end
220
190
  local ok, msg = pcall(function()
@@ -294,11 +264,10 @@ local P = {
294
264
  setup = setup
295
265
  }
296
266
  return P
297
- end
298
- --
299
- source_shared_engine_loadgame_23d0 = function()
300
- local eval_file = source_shared_string_eval_file_2bd3()
301
- local eval_code = source_shared_string_eval_code_2bde()
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')
302
271
  local has_io_open = io and io.open
303
272
  local function normalize(app, base)
304
273
  if not app then return nil end
@@ -369,9 +338,8 @@ local P = {
369
338
  script = script
370
339
  }
371
340
  return P
372
- end
373
- --
374
- source_engine_api_data_encoder_23e2 = function()
341
+ end)() or false;b_23b0[3] = function() return c end return c end
342
+ b_23b0[4] = function() local c = (function()
375
343
  local function install(std, engine, library, name)
376
344
  std = std or {}
377
345
  std[name] = {
@@ -384,10 +352,9 @@ local P = {
384
352
  install=install
385
353
  }
386
354
  return P
387
- end
388
- --
389
- source_engine_api_system_app_23ed = function()
390
- local util_decorator = source_shared_functional_decorator_2e7f()
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')
391
358
  local function reset(std, engine)
392
359
  if std.node then
393
360
  std.bus.emit('exit')
@@ -425,9 +392,8 @@ local P = {
425
392
  install=install
426
393
  }
427
394
  return P
428
- end
429
- --
430
- source_engine_api_data_hash_23f8 = function()
395
+ end)() or false;b_23b0[5] = function() return c end return c end
396
+ b_23b0[6] = function() local c = (function()
431
397
  local function djb2(digest)
432
398
  local index = 1
433
399
  local hash = 5381
@@ -449,10 +415,9 @@ local P = {
449
415
  install = install
450
416
  }
451
417
  return P
452
- end
453
- --
454
- source_engine_api_io_http_2403 = function()
455
- local zeebo_pipeline = source_shared_functional_pipeline_2961()
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')
456
421
  local function json(self)
457
422
  self.options['json'] = true
458
423
  return self
@@ -608,9 +573,8 @@ local P = {
608
573
  install=install
609
574
  }
610
575
  return P
611
- end
612
- --
613
- source_engine_api_data_i18n_240e = function()
576
+ end)() or false;b_23b0[7] = function() return c end return c end
577
+ b_23b0[8] = function() local c = (function()
614
578
  local language = 'en-US'
615
579
  local language_default = 'en-US'
616
580
  local language_list = {}
@@ -700,9 +664,8 @@ local P = {
700
664
  install=install
701
665
  }
702
666
  return P
703
- end
704
- --
705
- source_engine_api_system_key_2419 = function()
667
+ end)() or false;b_23b0[8] = function() return c end return c end
668
+ b_23b0[9] = function() local c = (function()
706
669
  local function real_key(std, engine, rkey, rvalue)
707
670
  local value = rvalue == 1 or rvalue == true
708
671
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -737,10 +700,9 @@ local P = {
737
700
  install = install
738
701
  }
739
702
  return P
740
- end
741
- --
742
- source_engine_api_debug_log_2424 = function()
743
- local util_decorator = source_shared_functional_decorator_2e7f()
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')
744
706
  local logging_types = {
745
707
  'none', 'fatal', 'error', 'warn', 'debug', 'info'
746
708
  }
@@ -784,9 +746,8 @@ local P = {
784
746
  install = install
785
747
  }
786
748
  return P
787
- end
788
- --
789
- source_engine_api_math_basic_242f = function()
749
+ end)() or false;b_23b0[10] = function() return c end return c end
750
+ b_23b0[11] = function() local c = (function()
790
751
  local function abs(value)
791
752
  if value < 0 then
792
753
  return -value
@@ -883,9 +844,8 @@ local P = {
883
844
  install = install
884
845
  }
885
846
  return P
886
- end
887
- --
888
- source_engine_api_math_clib_243a = function()
847
+ end)() or false;b_23b0[11] = function() return c end return c end
848
+ b_23b0[12] = function() local c = (function()
889
849
  local function install(std)
890
850
  assert(math and (1/2 ~= 0))
891
851
  std.math = std.math or {}
@@ -919,9 +879,8 @@ local P = {
919
879
  install = install
920
880
  }
921
881
  return P
922
- end
923
- --
924
- source_engine_api_math_random_2445 = function()
882
+ end)() or false;b_23b0[12] = function() return c end return c end
883
+ b_23b0[13] = function() local c = (function()
925
884
  local function install(std)
926
885
  assert(math and (1/2 ~= 0))
927
886
  std.math = std.math or {}
@@ -936,10 +895,9 @@ local P = {
936
895
  install = install
937
896
  }
938
897
  return P
939
- end
940
- --
941
- source_engine_api_data_array_2450 = function()
942
- local util_decorator = source_shared_functional_decorator_2e7f()
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')
943
901
  local function array_map(array, func)
944
902
  local res = {}
945
903
  local index = 1
@@ -1098,14 +1056,13 @@ local P = {
1098
1056
  install = install
1099
1057
  }
1100
1058
  return P
1101
- end
1102
- --
1103
- source_engine_api_io_media_245b = function()
1059
+ end)() or false;b_23b0[14] = function() return c end return c end
1060
+ b_23b0[15] = function() local c = (function()
1104
1061
  local function media_create(node, channels, handler)
1105
1062
  local decorator = function(func)
1106
1063
  func = func or function() end
1107
- return function(self, a, b, c)
1108
- func(0, a, b, c)
1064
+ return function(self, a, b, c, d, e, f)
1065
+ func(0, a, b, c, d, e, f)
1109
1066
  return self
1110
1067
  end
1111
1068
  end
@@ -1145,9 +1102,8 @@ local P = {
1145
1102
  install=install
1146
1103
  }
1147
1104
  return P
1148
- end
1149
- --
1150
- source_engine_api_draw_fps_2466 = function()
1105
+ end)() or false;b_23b0[15] = function() return c end return c end
1106
+ b_23b0[16] = function() local c = (function()
1151
1107
  local function draw_fps(std, engine, show, pos_x, pos_y)
1152
1108
  if show < 1 then return end
1153
1109
  local x = engine.current.config.offset_x + pos_x
@@ -1194,10 +1150,9 @@ local P = {
1194
1150
  install=install
1195
1151
  }
1196
1152
  return P
1197
- end
1198
- --
1199
- source_engine_api_draw_text_2471 = function()
1200
- local util_decorator = source_shared_functional_decorator_2e7f()
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')
1201
1156
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
1202
1157
  size = size or 2
1203
1158
  local hem = engine.current.data.width / 80
@@ -1224,9 +1179,8 @@ local P = {
1224
1179
  install=install
1225
1180
  }
1226
1181
  return P
1227
- end
1228
- --
1229
- source_engine_api_draw_poly_247c = function()
1182
+ end)() or false;b_23b0[17] = function() return c end return c end
1183
+ b_23b0[18] = function() local c = (function()
1230
1184
  local function decorator_poo(object, func)
1231
1185
  if not object or not func then return func end
1232
1186
  return function(a, b, c, d)
@@ -1331,9 +1285,8 @@ local P = {
1331
1285
  install=install
1332
1286
  }
1333
1287
  return P
1334
- end
1335
- --
1336
- source_engine_api_raw_memory_2487 = function()
1288
+ end)() or false;b_23b0[18] = function() return c end return c end
1289
+ b_23b0[19] = function() local c = (function()
1337
1290
  local memory_dict_unload = {}
1338
1291
  local memory_dict = {}
1339
1292
  local memory_list = {}
@@ -1386,11 +1339,10 @@ local P = {
1386
1339
  install=install
1387
1340
  }
1388
1341
  return P
1389
- end
1390
- --
1391
- source_engine_protocol_http_callback_2499 = function()
1392
- local str_http = source_shared_string_encode_http_5c72()
1393
- local str_url = source_shared_string_encode_url_5c7d()
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')
1394
1346
  local callbacks = {
1395
1347
  ['async-promise'] = function(self)
1396
1348
  return self:promise()
@@ -1455,9 +1407,8 @@ local P = {
1455
1407
  func = native_http_callback
1456
1408
  }
1457
1409
  return P
1458
- end
1459
- --
1460
- source_shared_var_object_root_24ab = function()
1410
+ end)() or false;b_23b0[20] = function() return c end return c end
1411
+ b_23b0[21] = function() local c = (function()
1461
1412
  local P = {
1462
1413
  data={
1463
1414
  width=1280,
@@ -1485,9 +1436,8 @@ callbacks={
1485
1436
  }
1486
1437
  }
1487
1438
  return P;
1488
- end
1489
- --
1490
- source_engine_api_system_color_24b6 = function()
1439
+ end)() or false;b_23b0[21] = function() return c end return c end
1440
+ b_23b0[22] = function() local c = (function()
1491
1441
  local function install(std)
1492
1442
  std.color = std.color or {}
1493
1443
  std.color.white = 0xFFFFFFFF
@@ -1520,9 +1470,8 @@ local P = {
1520
1470
  install = install
1521
1471
  }
1522
1472
  return P
1523
- end
1524
- --
1525
- source_shared_var_object_std_24c1 = function()
1473
+ end)() or false;b_23b0[22] = function() return c end return c end
1474
+ b_23b0[23] = function() local c = (function()
1526
1475
  local P = {
1527
1476
  milis = 0,
1528
1477
  delta = 0,
@@ -1588,9 +1537,8 @@ any=false
1588
1537
  }
1589
1538
  }
1590
1539
  return P;
1591
- end
1592
- --
1593
- source_shared_functional_pipeline_2961 = function()
1540
+ end)() or false;b_23b0[23] = function() return c end return c end
1541
+ b_23b0[24] = function() local c = (function()
1594
1542
  local function pipe(self)
1595
1543
  return function()
1596
1544
  self:run()
@@ -1638,9 +1586,8 @@ resume=resume,
1638
1586
  run=run
1639
1587
  }
1640
1588
  return P
1641
- end
1642
- --
1643
- source_shared_string_dsl_requires_296c = function()
1589
+ end)() or false;b_23b0[24] = function() return c end return c end
1590
+ b_23b0[25] = function() local c = (function()
1644
1591
  local function encode(dsl_string)
1645
1592
  local spec = {
1646
1593
  list = {},
@@ -1687,9 +1634,8 @@ missing = missing,
1687
1634
  should_import = should_import
1688
1635
  }
1689
1636
  return P
1690
- end
1691
- --
1692
- source_shared_string_eval_file_2bd3 = function()
1637
+ end)() or false;b_23b0[25] = function() return c end return c end
1638
+ b_23b0[26] = function() local c = (function()
1693
1639
  local function script(src)
1694
1640
  local ok, app = false, nil
1695
1641
  if require then
@@ -1713,9 +1659,8 @@ local P = {
1713
1659
  script = script,
1714
1660
  }
1715
1661
  return P
1716
- end
1717
- --
1718
- source_shared_string_eval_code_2bde = function()
1662
+ end)() or false;b_23b0[26] = function() return c end return c end
1663
+ b_23b0[27] = function() local c = (function()
1719
1664
  local function script(src)
1720
1665
  local loader = loadstring or load
1721
1666
  if not loader then
@@ -1734,9 +1679,8 @@ local P = {
1734
1679
  script = script,
1735
1680
  }
1736
1681
  return P
1737
- end
1738
- --
1739
- source_shared_functional_decorator_2e7f = function()
1682
+ end)() or false;b_23b0[27] = function() return c end return c end
1683
+ b_23b0[28] = function() local c = (function()
1740
1684
  local function decorator_prefix3(zig, zag, zom, func)
1741
1685
  return function (a, b, c, d, e, f)
1742
1686
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -1792,9 +1736,8 @@ prefix1 = decorator_prefix1,
1792
1736
  prefix1_t = table_prefix1
1793
1737
  }
1794
1738
  return P
1795
- end
1796
- --
1797
- source_shared_string_encode_http_5c72 = function()
1739
+ end)() or false;b_23b0[28] = function() return c end return c end
1740
+ b_23b0[30] = function() local c = (function()
1798
1741
  local function is_ok(status)
1799
1742
  return (status and 200 <= status and status < 300) or false
1800
1743
  end
@@ -1939,9 +1882,8 @@ get_content=get_content,
1939
1882
  get_user_agent=get_user_agent,
1940
1883
  create_request=create_request
1941
1884
  }
1942
- end
1943
- --
1944
- source_shared_string_encode_url_5c7d = function()
1885
+ end)() or false;b_23b0[30] = function() return c end return c end
1886
+ b_23b0[31] = function() local c = (function()
1945
1887
  local function search_param(param_list, param_dict)
1946
1888
  local index, params = 1, ''
1947
1889
  while param_list and param_dict and index <= #param_list do
@@ -1961,6 +1903,5 @@ local P = {
1961
1903
  search_param = search_param
1962
1904
  }
1963
1905
  return P
1964
- end
1965
- --
1966
- return main_23b1()
1906
+ end)() or false;b_23b0[31] = function() return c end return c end
1907
+ return main_23b0()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-lite",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",