@gamely/gly-engine-micro 0.2.5 → 0.2.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 +55 -75
  2. package/package.json +1 -1
package/dist/main.lua CHANGED
@@ -1,32 +1,26 @@
1
+ local b145d = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
2
+ local r145d = function(i, f)
3
+ return function()
4
+ local c = f()
5
+ b145d[i] = function() return c end
6
+ return c
7
+ end
8
+ end
1
9
  local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
2
- local source_version_13dc = nil
3
- local source_engine_api_system_app_13ee = nil
4
- local source_engine_api_system_key_13f9 = nil
5
- local source_engine_api_math_basic_1404 = nil
6
- local source_engine_api_math_clib_140f = nil
7
- local source_engine_api_math_random_141a = nil
8
- local source_engine_api_data_array_1425 = nil
9
- local source_engine_api_draw_text_1430 = nil
10
- local source_engine_api_draw_poly_143b = nil
11
- local source_engine_api_raw_memory_1446 = nil
12
- local source_engine_api_system_color_1458 = nil
13
- local source_shared_var_object_std_1463 = nil
14
- local source_shared_string_eval_code_1475 = nil
15
- local source_shared_functional_decorator_17f6 = nil
16
- local function main_13d3()
17
- local version = source_version_13dc()
18
- local engine_game = source_engine_api_system_app_13ee()
19
- local engine_key = source_engine_api_system_key_13f9()
20
- local engine_math = source_engine_api_math_basic_1404()
21
- local engine_math_clib = source_engine_api_math_clib_140f()
22
- local engine_math_random = source_engine_api_math_random_141a()
23
- local engine_array = source_engine_api_data_array_1425()
24
- local engine_api_draw_text = source_engine_api_draw_text_1430()
25
- local engine_api_draw_poly = source_engine_api_draw_poly_143b()
26
- local engine_raw_memory = source_engine_api_raw_memory_1446()
27
- local color = source_engine_api_system_color_1458()
28
- local std = source_shared_var_object_std_1463()
29
- local eval_code = source_shared_string_eval_code_1475()
10
+ local function m145d()
11
+ local version = b145d[1]('source_version')
12
+ local engine_game = b145d[2]('source_engine_api_system_app')
13
+ local engine_key = b145d[3]('source_engine_api_system_key')
14
+ local engine_math = b145d[4]('source_engine_api_math_basic')
15
+ local engine_math_clib = b145d[5]('source_engine_api_math_clib')
16
+ local engine_math_random = b145d[6]('source_engine_api_math_random')
17
+ local engine_array = b145d[7]('source_engine_api_data_array')
18
+ local engine_api_draw_text = b145d[8]('source_engine_api_draw_text')
19
+ local engine_api_draw_poly = b145d[9]('source_engine_api_draw_poly')
20
+ local engine_raw_memory = b145d[10]('source_engine_api_raw_memory')
21
+ local color = b145d[11]('source_engine_api_system_color')
22
+ local std = b145d[12]('source_shared_var_object_std')
23
+ local eval_code = b145d[13]('source_shared_string_eval_code')
30
24
  local f=function(a,b)end
31
25
  local engine={keyboard=f}
32
26
  local application={
@@ -141,12 +135,11 @@ version=version
141
135
  }
142
136
  return P
143
137
  end
144
- source_version_13dc = function()
145
- return '0.2.5'
146
- end
147
- --
148
- source_engine_api_system_app_13ee = function()
149
- local util_decorator = source_shared_functional_decorator_17f6()
138
+ b145d[1] = r145d(1, function()
139
+ return '0.2.7'
140
+ end)
141
+ b145d[2] = r145d(2, function()
142
+ local util_decorator = b145d[14]('source_shared_functional_decorator')
150
143
  local function reset(std, engine)
151
144
  if std.node then
152
145
  std.bus.emit('exit')
@@ -184,9 +177,8 @@ local P = {
184
177
  install=install
185
178
  }
186
179
  return P
187
- end
188
- --
189
- source_engine_api_system_key_13f9 = function()
180
+ end)
181
+ b145d[3] = r145d(3, function()
190
182
  local function real_key(std, engine, rkey, rvalue)
191
183
  local value = rvalue == 1 or rvalue == true
192
184
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -221,9 +213,8 @@ local P = {
221
213
  install = install
222
214
  }
223
215
  return P
224
- end
225
- --
226
- source_engine_api_math_basic_1404 = function()
216
+ end)
217
+ b145d[4] = r145d(4, function()
227
218
  local function abs(value)
228
219
  if value < 0 then
229
220
  return -value
@@ -320,9 +311,8 @@ local P = {
320
311
  install = install
321
312
  }
322
313
  return P
323
- end
324
- --
325
- source_engine_api_math_clib_140f = function()
314
+ end)
315
+ b145d[5] = r145d(5, function()
326
316
  local function install(std)
327
317
  assert(math and (1/2 ~= 0))
328
318
  std.math = std.math or {}
@@ -356,9 +346,8 @@ local P = {
356
346
  install = install
357
347
  }
358
348
  return P
359
- end
360
- --
361
- source_engine_api_math_random_141a = function()
349
+ end)
350
+ b145d[6] = r145d(6, function()
362
351
  local function install(std)
363
352
  assert(math and (1/2 ~= 0))
364
353
  std.math = std.math or {}
@@ -373,10 +362,9 @@ local P = {
373
362
  install = install
374
363
  }
375
364
  return P
376
- end
377
- --
378
- source_engine_api_data_array_1425 = function()
379
- local util_decorator = source_shared_functional_decorator_17f6()
365
+ end)
366
+ b145d[7] = r145d(7, function()
367
+ local util_decorator = b145d[14]('source_shared_functional_decorator')
380
368
  local function array_map(array, func)
381
369
  local res = {}
382
370
  local index = 1
@@ -535,10 +523,9 @@ local P = {
535
523
  install = install
536
524
  }
537
525
  return P
538
- end
539
- --
540
- source_engine_api_draw_text_1430 = function()
541
- local util_decorator = source_shared_functional_decorator_17f6()
526
+ end)
527
+ b145d[8] = r145d(8, function()
528
+ local util_decorator = b145d[14]('source_shared_functional_decorator')
542
529
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
543
530
  size = size or 2
544
531
  local hem = engine.current.data.width / 80
@@ -565,9 +552,8 @@ local P = {
565
552
  install=install
566
553
  }
567
554
  return P
568
- end
569
- --
570
- source_engine_api_draw_poly_143b = function()
555
+ end)
556
+ b145d[9] = r145d(9, function()
571
557
  local function decorator_poo(object, func)
572
558
  if not object or not func then return func end
573
559
  return function(a, b, c, d)
@@ -672,9 +658,8 @@ local P = {
672
658
  install=install
673
659
  }
674
660
  return P
675
- end
676
- --
677
- source_engine_api_raw_memory_1446 = function()
661
+ end)
662
+ b145d[10] = r145d(10, function()
678
663
  local memory_dict_unload = {}
679
664
  local memory_dict = {}
680
665
  local memory_list = {}
@@ -727,9 +712,8 @@ local P = {
727
712
  install=install
728
713
  }
729
714
  return P
730
- end
731
- --
732
- source_engine_api_system_color_1458 = function()
715
+ end)
716
+ b145d[11] = r145d(11, function()
733
717
  local function install(std)
734
718
  std.color = std.color or {}
735
719
  std.color.white = 0xFFFFFFFF
@@ -762,9 +746,8 @@ local P = {
762
746
  install = install
763
747
  }
764
748
  return P
765
- end
766
- --
767
- source_shared_var_object_std_1463 = function()
749
+ end)
750
+ b145d[12] = r145d(12, function()
768
751
  local P = {
769
752
  milis = 0,
770
753
  delta = 0,
@@ -830,9 +813,8 @@ any=false
830
813
  }
831
814
  }
832
815
  return P;
833
- end
834
- --
835
- source_shared_string_eval_code_1475 = function()
816
+ end)
817
+ b145d[13] = r145d(13, function()
836
818
  local function script(src)
837
819
  local loader = loadstring or load
838
820
  if not loader then
@@ -851,9 +833,8 @@ local P = {
851
833
  script = script,
852
834
  }
853
835
  return P
854
- end
855
- --
856
- source_shared_functional_decorator_17f6 = function()
836
+ end)
837
+ b145d[14] = r145d(14, function()
857
838
  local function decorator_prefix3(zig, zag, zom, func)
858
839
  return function (a, b, c, d, e, f)
859
840
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -909,6 +890,5 @@ prefix1 = decorator_prefix1,
909
890
  prefix1_t = table_prefix1
910
891
  }
911
892
  return P
912
- end
913
- --
914
- return main_13d3()
893
+ end)
894
+ return m145d()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-micro",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",