@gamely/gly-engine-nano 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 +35 -43
  2. package/package.json +1 -1
package/dist/main.lua CHANGED
@@ -1,19 +1,19 @@
1
- local source_version_c1f = nil
2
- local source_engine_api_system_key_c31 = nil
3
- local source_engine_api_draw_text_c3c = nil
4
- local source_engine_api_draw_poly_c47 = nil
5
- local source_engine_api_system_color_c59 = nil
6
- local source_shared_var_object_std_c64 = nil
7
- local source_shared_string_eval_code_c76 = nil
8
- local source_shared_functional_decorator_10c4 = nil
9
- local function main_c16()
10
- local version = source_version_c1f()
11
- local engine_key = source_engine_api_system_key_c31()
12
- local engine_api_draw_text = source_engine_api_draw_text_c3c()
13
- local engine_api_draw_poly = source_engine_api_draw_poly_c47()
14
- local color = source_engine_api_system_color_c59()
15
- local std = source_shared_var_object_std_c64()
16
- local eval_code = source_shared_string_eval_code_c76()
1
+ local bc77 = {0,0,0,0,0,0,0,0}
2
+ local rc77 = function(i, f)
3
+ return function()
4
+ local c = f()
5
+ bc77[i] = function() return c end
6
+ return c
7
+ end
8
+ end
9
+ local function mc77()
10
+ local version = bc77[1]('source_version')
11
+ local engine_key = bc77[2]('source_engine_api_system_key')
12
+ local engine_api_draw_text = bc77[3]('source_engine_api_draw_text')
13
+ local engine_api_draw_poly = bc77[4]('source_engine_api_draw_poly')
14
+ local color = bc77[5]('source_engine_api_system_color')
15
+ local std = bc77[6]('source_shared_var_object_std')
16
+ local eval_code = bc77[7]('source_shared_string_eval_code')
17
17
  local f=function(a,b)end
18
18
  local engine={keyboard=f}
19
19
  local application={
@@ -115,11 +115,10 @@ version=version
115
115
  }
116
116
  return P
117
117
  end
118
- source_version_c1f = function()
119
- return '0.2.5'
120
- end
121
- --
122
- source_engine_api_system_key_c31 = function()
118
+ bc77[1] = rc77(1, function()
119
+ return '0.2.7'
120
+ end)
121
+ bc77[2] = rc77(2, function()
123
122
  local function real_key(std, engine, rkey, rvalue)
124
123
  local value = rvalue == 1 or rvalue == true
125
124
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -154,10 +153,9 @@ local P = {
154
153
  install = install
155
154
  }
156
155
  return P
157
- end
158
- --
159
- source_engine_api_draw_text_c3c = function()
160
- local util_decorator = source_shared_functional_decorator_10c4()
156
+ end)
157
+ bc77[3] = rc77(3, function()
158
+ local util_decorator = bc77[8]('source_shared_functional_decorator')
161
159
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
162
160
  size = size or 2
163
161
  local hem = engine.current.data.width / 80
@@ -184,9 +182,8 @@ local P = {
184
182
  install=install
185
183
  }
186
184
  return P
187
- end
188
- --
189
- source_engine_api_draw_poly_c47 = function()
185
+ end)
186
+ bc77[4] = rc77(4, function()
190
187
  local function decorator_poo(object, func)
191
188
  if not object or not func then return func end
192
189
  return function(a, b, c, d)
@@ -291,9 +288,8 @@ local P = {
291
288
  install=install
292
289
  }
293
290
  return P
294
- end
295
- --
296
- source_engine_api_system_color_c59 = function()
291
+ end)
292
+ bc77[5] = rc77(5, function()
297
293
  local function install(std)
298
294
  std.color = std.color or {}
299
295
  std.color.white = 0xFFFFFFFF
@@ -326,9 +322,8 @@ local P = {
326
322
  install = install
327
323
  }
328
324
  return P
329
- end
330
- --
331
- source_shared_var_object_std_c64 = function()
325
+ end)
326
+ bc77[6] = rc77(6, function()
332
327
  local P = {
333
328
  milis = 0,
334
329
  delta = 0,
@@ -394,9 +389,8 @@ any=false
394
389
  }
395
390
  }
396
391
  return P;
397
- end
398
- --
399
- source_shared_string_eval_code_c76 = function()
392
+ end)
393
+ bc77[7] = rc77(7, function()
400
394
  local function script(src)
401
395
  local loader = loadstring or load
402
396
  if not loader then
@@ -415,9 +409,8 @@ local P = {
415
409
  script = script,
416
410
  }
417
411
  return P
418
- end
419
- --
420
- source_shared_functional_decorator_10c4 = function()
412
+ end)
413
+ bc77[8] = rc77(8, function()
421
414
  local function decorator_prefix3(zig, zag, zom, func)
422
415
  return function (a, b, c, d, e, f)
423
416
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -473,6 +466,5 @@ prefix1 = decorator_prefix1,
473
466
  prefix1_t = table_prefix1
474
467
  }
475
468
  return P
476
- end
477
- --
478
- return main_c16()
469
+ end)
470
+ return mc77()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-nano",
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",