@gamely/gly-engine-lite 0.3.10 → 0.3.11

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 +71 -71
  2. package/package.json +1 -1
package/dist/main.lua CHANGED
@@ -1,37 +1,37 @@
1
- local b2967 = {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,0,0}
2
- local r2967 = function(i, f)
1
+ local b2968 = {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,0,0}
2
+ local r2968 = function(i, f)
3
3
  return function()
4
4
  local c = f()
5
- b2967[i] = function() return c end
5
+ b2968[i] = function() return c end
6
6
  return c
7
7
  end
8
8
  end
9
9
  local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
10
- local function m2967()
11
- local version = b2967[1]('source_version')
12
- local loadcore = b2967[2]('source_shared_engine_loadcore')
13
- local loadgame = b2967[3]('source_shared_engine_loadgame')
14
- local engine_encoder = b2967[4]('source_engine_api_data_encoder')
15
- local engine_game = b2967[5]('source_engine_api_system_app')
16
- local engine_hash = b2967[6]('source_engine_api_data_hash')
17
- local engine_http = b2967[7]('source_engine_api_io_http')
18
- local engine_i18n = b2967[8]('source_engine_api_data_i18n')
19
- local engine_key = b2967[9]('source_engine_api_system_key')
20
- local engine_env = b2967[10]('source_engine_api_system_getenv')
21
- local engine_log = b2967[11]('source_engine_api_debug_log')
22
- local engine_math = b2967[12]('source_engine_api_math_basic')
23
- local engine_math_clib = b2967[13]('source_engine_api_math_clib')
24
- local engine_math_random = b2967[14]('source_engine_api_math_random')
25
- local engine_array = b2967[15]('source_engine_api_data_array')
26
- local engine_media = b2967[16]('source_engine_api_io_media')
27
- local engine_api_draw_fps = b2967[17]('source_engine_api_draw_fps')
28
- local engine_api_draw_text = b2967[18]('source_engine_api_draw_text')
29
- local engine_api_draw_poly = b2967[19]('source_engine_api_draw_poly')
30
- local engine_raw_memory = b2967[20]('source_engine_api_raw_memory')
31
- local callback_http = b2967[21]('source_engine_protocol_http_callback')
32
- local application_default = b2967[22]('source_shared_var_object_root')
33
- local color = b2967[23]('source_engine_api_system_color')
34
- local std = b2967[24]('source_shared_var_object_std')
10
+ local function m2968()
11
+ local version = b2968[1]('source_version')
12
+ local loadcore = b2968[2]('source_shared_engine_loadcore')
13
+ local loadgame = b2968[3]('source_shared_engine_loadgame')
14
+ local engine_encoder = b2968[4]('source_engine_api_data_encoder')
15
+ local engine_game = b2968[5]('source_engine_api_system_app')
16
+ local engine_hash = b2968[6]('source_engine_api_data_hash')
17
+ local engine_http = b2968[7]('source_engine_api_io_http')
18
+ local engine_i18n = b2968[8]('source_engine_api_data_i18n')
19
+ local engine_key = b2968[9]('source_engine_api_system_key')
20
+ local engine_env = b2968[10]('source_engine_api_system_getenv')
21
+ local engine_log = b2968[11]('source_engine_api_debug_log')
22
+ local engine_math = b2968[12]('source_engine_api_math_basic')
23
+ local engine_math_clib = b2968[13]('source_engine_api_math_clib')
24
+ local engine_math_random = b2968[14]('source_engine_api_math_random')
25
+ local engine_array = b2968[15]('source_engine_api_data_array')
26
+ local engine_media = b2968[16]('source_engine_api_io_media')
27
+ local engine_api_draw_fps = b2968[17]('source_engine_api_draw_fps')
28
+ local engine_api_draw_text = b2968[18]('source_engine_api_draw_text')
29
+ local engine_api_draw_poly = b2968[19]('source_engine_api_draw_poly')
30
+ local engine_raw_memory = b2968[20]('source_engine_api_raw_memory')
31
+ local callback_http = b2968[21]('source_engine_protocol_http_callback')
32
+ local application_default = b2968[22]('source_shared_var_object_root')
33
+ local color = b2968[23]('source_engine_api_system_color')
34
+ local std = b2968[24]('source_shared_var_object_std')
35
35
  local application = application_default
36
36
  local engine = {
37
37
  keyboard = function(a, b, c, d) end,
@@ -193,12 +193,12 @@ version=version
193
193
  }
194
194
  return P
195
195
  end
196
- b2967[1] = r2967(1, function()
197
- return '0.3.10'
196
+ b2968[1] = r2968(1, function()
197
+ return '0.3.11'
198
198
  end)
199
- b2967[2] = r2967(2, function()
200
- local zeebo_pipeline = b2967[25]('source_shared_functional_pipeline')
201
- local requires = b2967[26]('source_shared_string_dsl_requires')
199
+ b2968[2] = r2968(2, function()
200
+ local zeebo_pipeline = b2968[25]('source_shared_functional_pipeline')
201
+ local requires = b2968[26]('source_shared_string_dsl_requires')
202
202
  local function step_install_libsys(self, lib_name, library, custom, is_system)
203
203
  if not is_system then return end
204
204
  local ok, msg = pcall(function()
@@ -279,9 +279,9 @@ setup = setup
279
279
  }
280
280
  return P
281
281
  end)
282
- b2967[3] = r2967(3, function()
283
- local eval_file = b2967[27]('source_shared_string_eval_file')
284
- local eval_code = b2967[28]('source_shared_string_eval_code')
282
+ b2968[3] = r2968(3, function()
283
+ local eval_file = b2968[27]('source_shared_string_eval_file')
284
+ local eval_code = b2968[28]('source_shared_string_eval_code')
285
285
  local has_io_open = io and io.open
286
286
  local function normalize(app, base)
287
287
  if not app then return nil end
@@ -355,7 +355,7 @@ script = script
355
355
  }
356
356
  return P
357
357
  end)
358
- b2967[4] = r2967(4, function()
358
+ b2968[4] = r2968(4, function()
359
359
  local function install(std, engine, library, name)
360
360
  std = std or {}
361
361
  std[name] = {
@@ -369,7 +369,7 @@ install=install
369
369
  }
370
370
  return P
371
371
  end)
372
- b2967[5] = r2967(5, function()
372
+ b2968[5] = r2968(5, function()
373
373
  local function reset(std, engine)
374
374
  if std.node then
375
375
  return function()
@@ -418,7 +418,7 @@ install=install
418
418
  }
419
419
  return P
420
420
  end)
421
- b2967[6] = r2967(6, function()
421
+ b2968[6] = r2968(6, function()
422
422
  local function djb2(digest)
423
423
  local index = 1
424
424
  local hash = 5381
@@ -441,8 +441,8 @@ install = install
441
441
  }
442
442
  return P
443
443
  end)
444
- b2967[7] = r2967(7, function()
445
- local zeebo_pipeline = b2967[25]('source_shared_functional_pipeline')
444
+ b2968[7] = r2968(7, function()
445
+ local zeebo_pipeline = b2968[25]('source_shared_functional_pipeline')
446
446
  local function json(self)
447
447
  self.options['json'] = true
448
448
  return self
@@ -608,7 +608,7 @@ install=install
608
608
  }
609
609
  return P
610
610
  end)
611
- b2967[8] = r2967(8, function()
611
+ b2968[8] = r2968(8, function()
612
612
  local language = 'en-US'
613
613
  local language_default = 'en-US'
614
614
  local language_list = {}
@@ -699,7 +699,7 @@ install=install
699
699
  }
700
700
  return P
701
701
  end)
702
- b2967[9] = r2967(9, function()
702
+ b2968[9] = r2968(9, function()
703
703
  local function real_key(std, engine, rkey, rvalue)
704
704
  local value = (rvalue == 1 or rvalue == true) or false
705
705
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -748,7 +748,7 @@ return {
748
748
  install = install
749
749
  }
750
750
  end)
751
- b2967[10] = r2967(10, function()
751
+ b2968[10] = r2968(10, function()
752
752
  local function setenv(engine)
753
753
  return function(varname, value)
754
754
  if engine.root ~= engine.current then
@@ -791,8 +791,8 @@ install = install
791
791
  }
792
792
  return P
793
793
  end)
794
- b2967[11] = r2967(11, function()
795
- local yaml = b2967[29]('source_shared_string_encode_yaml')
794
+ b2968[11] = r2968(11, function()
795
+ local yaml = b2968[29]('source_shared_string_encode_yaml')
796
796
  local levels = { none = 0, fatal = 1, error = 2, warn = 3, info = 4, debug = 5, trace = 6}
797
797
  local function printer(engine, printers, func_a, func_b)
798
798
  local fn_a = func_a and printers[func_a]
@@ -850,7 +850,7 @@ install = install
850
850
  }
851
851
  return P
852
852
  end)
853
- b2967[12] = r2967(12, function()
853
+ b2968[12] = r2968(12, function()
854
854
  local function abs(value)
855
855
  if value < 0 then
856
856
  return -value
@@ -948,7 +948,7 @@ install = install
948
948
  }
949
949
  return P
950
950
  end)
951
- b2967[13] = r2967(13, function()
951
+ b2968[13] = r2968(13, function()
952
952
  local function install(std)
953
953
  assert(math and (1/2 ~= 0))
954
954
  std.math = std.math or {}
@@ -983,7 +983,7 @@ install = install
983
983
  }
984
984
  return P
985
985
  end)
986
- b2967[14] = r2967(14, function()
986
+ b2968[14] = r2968(14, function()
987
987
  local function install(std)
988
988
  assert(math and (1/2 ~= 0))
989
989
  std.math = std.math or {}
@@ -999,8 +999,8 @@ install = install
999
999
  }
1000
1000
  return P
1001
1001
  end)
1002
- b2967[15] = r2967(15, function()
1003
- local util_decorator = b2967[31]('source_shared_functional_decorator')
1002
+ b2968[15] = r2968(15, function()
1003
+ local util_decorator = b2968[31]('source_shared_functional_decorator')
1004
1004
  local function array_map(array, func)
1005
1005
  local res = {}
1006
1006
  local index = 1
@@ -1160,7 +1160,7 @@ install = install
1160
1160
  }
1161
1161
  return P
1162
1162
  end)
1163
- b2967[16] = r2967(16, function()
1163
+ b2968[16] = r2968(16, function()
1164
1164
  local function media_create(node, channels, handler)
1165
1165
  local decorator = function(func)
1166
1166
  func = func or function() end
@@ -1206,7 +1206,7 @@ install=install
1206
1206
  }
1207
1207
  return P
1208
1208
  end)
1209
- b2967[17] = r2967(17, function()
1209
+ b2968[17] = r2968(17, function()
1210
1210
  local function draw_fps(std, engine, show, pos_x, pos_y)
1211
1211
  if show < 1 then return end
1212
1212
  local x = engine.current.config.offset_x + pos_x
@@ -1254,7 +1254,7 @@ install=install
1254
1254
  }
1255
1255
  return P
1256
1256
  end)
1257
- b2967[18] = r2967(18, function()
1257
+ b2968[18] = r2968(18, function()
1258
1258
  local function text_put(std, engine, font_previous)
1259
1259
  return function(pos_x, pos_y, text, size)
1260
1260
  size = size or 2
@@ -1286,7 +1286,7 @@ install=install
1286
1286
  }
1287
1287
  return P
1288
1288
  end)
1289
- b2967[19] = r2967(19, function()
1289
+ b2968[19] = r2968(19, function()
1290
1290
  local function decorator_poo(object, func)
1291
1291
  if not object or not func then return func end
1292
1292
  return function(a, b, c, d)
@@ -1392,7 +1392,7 @@ install=install
1392
1392
  }
1393
1393
  return P
1394
1394
  end)
1395
- b2967[20] = r2967(20, function()
1395
+ b2968[20] = r2968(20, function()
1396
1396
  local memory_dict_unload = {}
1397
1397
  local memory_dict = {}
1398
1398
  local memory_list = {}
@@ -1446,9 +1446,9 @@ install=install
1446
1446
  }
1447
1447
  return P
1448
1448
  end)
1449
- b2967[21] = r2967(21, function()
1450
- local str_http = b2967[32]('source_shared_string_encode_http')
1451
- local str_url = b2967[33]('source_shared_string_encode_url')
1449
+ b2968[21] = r2968(21, function()
1450
+ local str_http = b2968[32]('source_shared_string_encode_http')
1451
+ local str_url = b2968[33]('source_shared_string_encode_url')
1452
1452
  local callbacks = {
1453
1453
  ['async-promise'] = function(self)
1454
1454
  return self:promise()
@@ -1517,7 +1517,7 @@ func = native_http_callback
1517
1517
  }
1518
1518
  return P
1519
1519
  end)
1520
- b2967[22] = r2967(22, function()
1520
+ b2968[22] = r2968(22, function()
1521
1521
  local P = {
1522
1522
  data={
1523
1523
  width=1280,
@@ -1546,7 +1546,7 @@ callbacks={
1546
1546
  }
1547
1547
  return P;
1548
1548
  end)
1549
- b2967[23] = r2967(23, function()
1549
+ b2968[23] = r2968(23, function()
1550
1550
  local function install(std)
1551
1551
  std.color = std.color or {}
1552
1552
  std.color.white = 0xFFFFFFFF
@@ -1580,7 +1580,7 @@ install = install
1580
1580
  }
1581
1581
  return P
1582
1582
  end)
1583
- b2967[24] = r2967(24, function()
1583
+ b2968[24] = r2968(24, function()
1584
1584
  local P = {
1585
1585
  milis = 0,
1586
1586
  delta = 0,
@@ -1647,7 +1647,7 @@ any=false
1647
1647
  }
1648
1648
  return P;
1649
1649
  end)
1650
- b2967[25] = r2967(25, function()
1650
+ b2968[25] = r2968(25, function()
1651
1651
  local function pipe(self)
1652
1652
  return function()
1653
1653
  self:run()
@@ -1696,7 +1696,7 @@ run=run
1696
1696
  }
1697
1697
  return P
1698
1698
  end)
1699
- b2967[26] = r2967(26, function()
1699
+ b2968[26] = r2968(26, function()
1700
1700
  local function encode(dsl_string)
1701
1701
  local spec = {
1702
1702
  list = {},
@@ -1744,7 +1744,7 @@ should_import = should_import
1744
1744
  }
1745
1745
  return P
1746
1746
  end)
1747
- b2967[27] = r2967(27, function()
1747
+ b2968[27] = r2968(27, function()
1748
1748
  local function script(src)
1749
1749
  local ok, app = false, nil
1750
1750
  if require then
@@ -1769,7 +1769,7 @@ script = script,
1769
1769
  }
1770
1770
  return P
1771
1771
  end)
1772
- b2967[28] = r2967(28, function()
1772
+ b2968[28] = r2968(28, function()
1773
1773
  local function script(src)
1774
1774
  local loader = loadstring or load
1775
1775
  if not loader then
@@ -1789,7 +1789,7 @@ script = script,
1789
1789
  }
1790
1790
  return P
1791
1791
  end)
1792
- b2967[29] = r2967(29, function()
1792
+ b2968[29] = r2968(29, function()
1793
1793
  local function get_max_width(indent)
1794
1794
  if indent <= 40 then
1795
1795
  return 80
@@ -1907,7 +1907,7 @@ return {
1907
1907
  encode = to_yaml
1908
1908
  }
1909
1909
  end)
1910
- b2967[31] = r2967(31, function()
1910
+ b2968[31] = r2968(31, function()
1911
1911
  local function decorator_prefix3(zig, zag, zom, func)
1912
1912
  return function (a, b, c, d, e, f)
1913
1913
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -1964,7 +1964,7 @@ prefix1_t = table_prefix1
1964
1964
  }
1965
1965
  return P
1966
1966
  end)
1967
- b2967[32] = r2967(32, function()
1967
+ b2968[32] = r2968(32, function()
1968
1968
  local function is_ok(status)
1969
1969
  return (status and 200 <= status and status < 300) or false
1970
1970
  end
@@ -2110,7 +2110,7 @@ get_user_agent=get_user_agent,
2110
2110
  create_request=create_request
2111
2111
  }
2112
2112
  end)
2113
- b2967[33] = r2967(33, function()
2113
+ b2968[33] = r2968(33, function()
2114
2114
  local function search_param(param_list, param_dict)
2115
2115
  local index, params = 1, ''
2116
2116
  while param_list and param_dict and index <= #param_list do
@@ -2131,4 +2131,4 @@ search_param = search_param
2131
2131
  }
2132
2132
  return P
2133
2133
  end)
2134
- return m2967()
2134
+ return m2968()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-lite",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",