@gamely/gly-engine-lite 0.1.4 → 0.1.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.
Files changed (2) hide show
  1. package/dist/main.lua +98 -98
  2. 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 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()
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()
56
56
  local application = application_default
57
57
  local engine = {
58
58
  keyboard = function(a, b, c, d) end,
@@ -208,13 +208,13 @@ version=version
208
208
  }
209
209
  return P
210
210
  end
211
- source_version_2399 = function()
212
- return '0.1.4'
211
+ source_version_23ba = function()
212
+ return '0.1.6'
213
213
  end
214
214
  --
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()
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()
218
218
  local function step_install_libsys(self, lib_name, library, custom, is_system)
219
219
  if not is_system then return end
220
220
  local ok, msg = pcall(function()
@@ -296,9 +296,9 @@ setup = setup
296
296
  return P
297
297
  end
298
298
  --
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()
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()
302
302
  local has_io_open = io and io.open
303
303
  local function normalize(app, base)
304
304
  if not app then return nil end
@@ -340,7 +340,7 @@ return normalize(src, base)
340
340
  end
341
341
  local application = type(src) == 'function' and src
342
342
  if not application then
343
- if type(application) ~= 'string' or #src == 0 then
343
+ if type(src) ~= 'string' or #src == 0 then
344
344
  src = 'game'
345
345
  end
346
346
  if src:find('\n') then
@@ -371,7 +371,7 @@ script = script
371
371
  return P
372
372
  end
373
373
  --
374
- source_engine_api_data_encoder_23c1 = function()
374
+ source_engine_api_data_encoder_23e2 = function()
375
375
  local function install(std, engine, library, name)
376
376
  std = std or {}
377
377
  std[name] = {
@@ -386,8 +386,8 @@ install=install
386
386
  return P
387
387
  end
388
388
  --
389
- source_engine_api_system_app_23cc = function()
390
- local util_decorator = source_shared_functional_decorator_2e5e()
389
+ source_engine_api_system_app_23ed = function()
390
+ local util_decorator = source_shared_functional_decorator_2e7f()
391
391
  local function reset(std, engine)
392
392
  if std.node then
393
393
  std.bus.emit('exit')
@@ -427,7 +427,7 @@ install=install
427
427
  return P
428
428
  end
429
429
  --
430
- source_engine_api_data_hash_23d7 = function()
430
+ source_engine_api_data_hash_23f8 = function()
431
431
  local function djb2(digest)
432
432
  local index = 1
433
433
  local hash = 5381
@@ -451,8 +451,8 @@ install = install
451
451
  return P
452
452
  end
453
453
  --
454
- source_engine_api_io_http_23e2 = function()
455
- local zeebo_pipeline = source_shared_functional_pipeline_2940()
454
+ source_engine_api_io_http_2403 = function()
455
+ local zeebo_pipeline = source_shared_functional_pipeline_2961()
456
456
  local function json(self)
457
457
  self.options['json'] = true
458
458
  return self
@@ -610,7 +610,7 @@ install=install
610
610
  return P
611
611
  end
612
612
  --
613
- source_engine_api_data_i18n_23ed = function()
613
+ source_engine_api_data_i18n_240e = function()
614
614
  local language = 'en-US'
615
615
  local language_default = 'en-US'
616
616
  local language_list = {}
@@ -702,7 +702,7 @@ install=install
702
702
  return P
703
703
  end
704
704
  --
705
- source_engine_api_system_key_23f8 = function()
705
+ source_engine_api_system_key_2419 = function()
706
706
  local function real_key(std, engine, rkey, rvalue)
707
707
  local value = rvalue == 1 or rvalue == true
708
708
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -739,8 +739,8 @@ install = install
739
739
  return P
740
740
  end
741
741
  --
742
- source_engine_api_debug_log_2403 = function()
743
- local util_decorator = source_shared_functional_decorator_2e5e()
742
+ source_engine_api_debug_log_2424 = function()
743
+ local util_decorator = source_shared_functional_decorator_2e7f()
744
744
  local logging_types = {
745
745
  'none', 'fatal', 'error', 'warn', 'debug', 'info'
746
746
  }
@@ -786,7 +786,7 @@ install = install
786
786
  return P
787
787
  end
788
788
  --
789
- source_engine_api_math_basic_240e = function()
789
+ source_engine_api_math_basic_242f = function()
790
790
  local function abs(value)
791
791
  if value < 0 then
792
792
  return -value
@@ -885,7 +885,7 @@ install = install
885
885
  return P
886
886
  end
887
887
  --
888
- source_engine_api_math_clib_2419 = function()
888
+ source_engine_api_math_clib_243a = function()
889
889
  local function install(std)
890
890
  assert(math and (1/2 ~= 0))
891
891
  std.math = std.math or {}
@@ -921,7 +921,7 @@ install = install
921
921
  return P
922
922
  end
923
923
  --
924
- source_engine_api_math_random_2424 = function()
924
+ source_engine_api_math_random_2445 = function()
925
925
  local function install(std)
926
926
  assert(math and (1/2 ~= 0))
927
927
  std.math = std.math or {}
@@ -938,8 +938,8 @@ install = install
938
938
  return P
939
939
  end
940
940
  --
941
- source_engine_api_data_array_242f = function()
942
- local util_decorator = source_shared_functional_decorator_2e5e()
941
+ source_engine_api_data_array_2450 = function()
942
+ local util_decorator = source_shared_functional_decorator_2e7f()
943
943
  local function array_map(array, func)
944
944
  local res = {}
945
945
  local index = 1
@@ -1100,7 +1100,7 @@ install = install
1100
1100
  return P
1101
1101
  end
1102
1102
  --
1103
- source_engine_api_io_media_243a = function()
1103
+ source_engine_api_io_media_245b = function()
1104
1104
  local function media_create(node, channels, handler)
1105
1105
  local decorator = function(func)
1106
1106
  func = func or function() end
@@ -1147,7 +1147,7 @@ install=install
1147
1147
  return P
1148
1148
  end
1149
1149
  --
1150
- source_engine_api_draw_fps_2445 = function()
1150
+ source_engine_api_draw_fps_2466 = function()
1151
1151
  local function draw_fps(std, engine, show, pos_x, pos_y)
1152
1152
  if show < 1 then return end
1153
1153
  local x = engine.current.config.offset_x + pos_x
@@ -1196,8 +1196,8 @@ install=install
1196
1196
  return P
1197
1197
  end
1198
1198
  --
1199
- source_engine_api_draw_text_2450 = function()
1200
- local util_decorator = source_shared_functional_decorator_2e5e()
1199
+ source_engine_api_draw_text_2471 = function()
1200
+ local util_decorator = source_shared_functional_decorator_2e7f()
1201
1201
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
1202
1202
  size = size or 2
1203
1203
  local hem = engine.current.data.width / 80
@@ -1226,7 +1226,7 @@ install=install
1226
1226
  return P
1227
1227
  end
1228
1228
  --
1229
- source_engine_api_draw_poly_245b = function()
1229
+ source_engine_api_draw_poly_247c = function()
1230
1230
  local function decorator_poo(object, func)
1231
1231
  if not object or not func then return func end
1232
1232
  return function(a, b, c, d)
@@ -1333,7 +1333,7 @@ install=install
1333
1333
  return P
1334
1334
  end
1335
1335
  --
1336
- source_engine_api_raw_memory_2466 = function()
1336
+ source_engine_api_raw_memory_2487 = function()
1337
1337
  local memory_dict_unload = {}
1338
1338
  local memory_dict = {}
1339
1339
  local memory_list = {}
@@ -1388,9 +1388,9 @@ install=install
1388
1388
  return P
1389
1389
  end
1390
1390
  --
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()
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()
1394
1394
  local callbacks = {
1395
1395
  ['async-promise'] = function(self)
1396
1396
  return self:promise()
@@ -1457,7 +1457,7 @@ func = native_http_callback
1457
1457
  return P
1458
1458
  end
1459
1459
  --
1460
- source_shared_var_object_root_248a = function()
1460
+ source_shared_var_object_root_24ab = function()
1461
1461
  local P = {
1462
1462
  data={
1463
1463
  width=1280,
@@ -1487,7 +1487,7 @@ callbacks={
1487
1487
  return P;
1488
1488
  end
1489
1489
  --
1490
- source_engine_api_system_color_2495 = function()
1490
+ source_engine_api_system_color_24b6 = function()
1491
1491
  local function install(std)
1492
1492
  std.color = std.color or {}
1493
1493
  std.color.white = 0xFFFFFFFF
@@ -1522,7 +1522,7 @@ install = install
1522
1522
  return P
1523
1523
  end
1524
1524
  --
1525
- source_shared_var_object_std_24a0 = function()
1525
+ source_shared_var_object_std_24c1 = function()
1526
1526
  local P = {
1527
1527
  milis = 0,
1528
1528
  delta = 0,
@@ -1590,7 +1590,7 @@ any=false
1590
1590
  return P;
1591
1591
  end
1592
1592
  --
1593
- source_shared_functional_pipeline_2940 = function()
1593
+ source_shared_functional_pipeline_2961 = function()
1594
1594
  local function pipe(self)
1595
1595
  return function()
1596
1596
  self:run()
@@ -1640,7 +1640,7 @@ run=run
1640
1640
  return P
1641
1641
  end
1642
1642
  --
1643
- source_shared_string_dsl_requires_294b = function()
1643
+ source_shared_string_dsl_requires_296c = function()
1644
1644
  local function encode(dsl_string)
1645
1645
  local spec = {
1646
1646
  list = {},
@@ -1689,7 +1689,7 @@ should_import = should_import
1689
1689
  return P
1690
1690
  end
1691
1691
  --
1692
- source_shared_string_eval_file_2bb2 = function()
1692
+ source_shared_string_eval_file_2bd3 = function()
1693
1693
  local function script(src)
1694
1694
  local ok, app = false, nil
1695
1695
  if require then
@@ -1715,7 +1715,7 @@ script = script,
1715
1715
  return P
1716
1716
  end
1717
1717
  --
1718
- source_shared_string_eval_code_2bbd = function()
1718
+ source_shared_string_eval_code_2bde = function()
1719
1719
  local function script(src)
1720
1720
  local loader = loadstring or load
1721
1721
  if not loader then
@@ -1736,7 +1736,7 @@ script = script,
1736
1736
  return P
1737
1737
  end
1738
1738
  --
1739
- source_shared_functional_decorator_2e5e = function()
1739
+ source_shared_functional_decorator_2e7f = function()
1740
1740
  local function decorator_prefix3(zig, zag, zom, func)
1741
1741
  return function (a, b, c, d, e, f)
1742
1742
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -1794,7 +1794,7 @@ prefix1_t = table_prefix1
1794
1794
  return P
1795
1795
  end
1796
1796
  --
1797
- source_shared_string_encode_http_5c51 = function()
1797
+ source_shared_string_encode_http_5c72 = function()
1798
1798
  local function is_ok(status)
1799
1799
  return (status and 200 <= status and status < 300) or false
1800
1800
  end
@@ -1941,7 +1941,7 @@ create_request=create_request
1941
1941
  }
1942
1942
  end
1943
1943
  --
1944
- source_shared_string_encode_url_5c5c = function()
1944
+ source_shared_string_encode_url_5c7d = function()
1945
1945
  local function search_param(param_list, param_dict)
1946
1946
  local index, params = 1, ''
1947
1947
  while param_list and param_dict and index <= #param_list do
@@ -1963,4 +1963,4 @@ search_param = search_param
1963
1963
  return P
1964
1964
  end
1965
1965
  --
1966
- return main_2390()
1966
+ return main_23b1()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-lite",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",