@gamely/gly-engine-nano 0.1.6 → 0.1.8
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.
- package/dist/main.lua +26 -41
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
local
|
|
2
|
-
local source_engine_api_system_key_c3d = nil
|
|
3
|
-
local source_engine_api_draw_text_c48 = nil
|
|
4
|
-
local source_engine_api_draw_poly_c53 = nil
|
|
5
|
-
local source_engine_api_system_color_c65 = nil
|
|
6
|
-
local source_shared_var_object_std_c70 = nil
|
|
7
|
-
local source_shared_string_eval_code_c82 = nil
|
|
8
|
-
local source_shared_functional_decorator_10a6 = nil
|
|
1
|
+
local b_c22 = {0,0,0,0,0,0,0,0}
|
|
9
2
|
local function main_c22()
|
|
10
|
-
local version =
|
|
11
|
-
local engine_key =
|
|
12
|
-
local engine_api_draw_text =
|
|
13
|
-
local engine_api_draw_poly =
|
|
14
|
-
local color =
|
|
15
|
-
local std =
|
|
16
|
-
local eval_code =
|
|
3
|
+
local version = b_c22[1]('source_version')
|
|
4
|
+
local engine_key = b_c22[2]('source_engine_api_system_key')
|
|
5
|
+
local engine_api_draw_text = b_c22[3]('source_engine_api_draw_text')
|
|
6
|
+
local engine_api_draw_poly = b_c22[4]('source_engine_api_draw_poly')
|
|
7
|
+
local color = b_c22[5]('source_engine_api_system_color')
|
|
8
|
+
local std = b_c22[6]('source_shared_var_object_std')
|
|
9
|
+
local eval_code = b_c22[7]('source_shared_string_eval_code')
|
|
17
10
|
local f=function(a,b)end
|
|
18
11
|
local engine={keyboard=f}
|
|
19
12
|
local application={
|
|
@@ -110,11 +103,10 @@ version=version
|
|
|
110
103
|
}
|
|
111
104
|
return P
|
|
112
105
|
end
|
|
113
|
-
|
|
114
|
-
return '0.1.
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
source_engine_api_system_key_c3d = function()
|
|
106
|
+
b_c22[1] = function() local c = (function()
|
|
107
|
+
return '0.1.8'
|
|
108
|
+
end)() or false;b_c22[1] = function() return c end return c end
|
|
109
|
+
b_c22[2] = function() local c = (function()
|
|
118
110
|
local function real_key(std, engine, rkey, rvalue)
|
|
119
111
|
local value = rvalue == 1 or rvalue == true
|
|
120
112
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -149,10 +141,9 @@ local P = {
|
|
|
149
141
|
install = install
|
|
150
142
|
}
|
|
151
143
|
return P
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
local util_decorator = source_shared_functional_decorator_10a6()
|
|
144
|
+
end)() or false;b_c22[2] = function() return c end return c end
|
|
145
|
+
b_c22[3] = function() local c = (function()
|
|
146
|
+
local util_decorator = b_c22[8]('source_shared_functional_decorator')
|
|
156
147
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
157
148
|
size = size or 2
|
|
158
149
|
local hem = engine.current.data.width / 80
|
|
@@ -179,9 +170,8 @@ local P = {
|
|
|
179
170
|
install=install
|
|
180
171
|
}
|
|
181
172
|
return P
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
source_engine_api_draw_poly_c53 = function()
|
|
173
|
+
end)() or false;b_c22[3] = function() return c end return c end
|
|
174
|
+
b_c22[4] = function() local c = (function()
|
|
185
175
|
local function decorator_poo(object, func)
|
|
186
176
|
if not object or not func then return func end
|
|
187
177
|
return function(a, b, c, d)
|
|
@@ -286,9 +276,8 @@ local P = {
|
|
|
286
276
|
install=install
|
|
287
277
|
}
|
|
288
278
|
return P
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
source_engine_api_system_color_c65 = function()
|
|
279
|
+
end)() or false;b_c22[4] = function() return c end return c end
|
|
280
|
+
b_c22[5] = function() local c = (function()
|
|
292
281
|
local function install(std)
|
|
293
282
|
std.color = std.color or {}
|
|
294
283
|
std.color.white = 0xFFFFFFFF
|
|
@@ -321,9 +310,8 @@ local P = {
|
|
|
321
310
|
install = install
|
|
322
311
|
}
|
|
323
312
|
return P
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
source_shared_var_object_std_c70 = function()
|
|
313
|
+
end)() or false;b_c22[5] = function() return c end return c end
|
|
314
|
+
b_c22[6] = function() local c = (function()
|
|
327
315
|
local P = {
|
|
328
316
|
milis = 0,
|
|
329
317
|
delta = 0,
|
|
@@ -389,9 +377,8 @@ any=false
|
|
|
389
377
|
}
|
|
390
378
|
}
|
|
391
379
|
return P;
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
source_shared_string_eval_code_c82 = function()
|
|
380
|
+
end)() or false;b_c22[6] = function() return c end return c end
|
|
381
|
+
b_c22[7] = function() local c = (function()
|
|
395
382
|
local function script(src)
|
|
396
383
|
local loader = loadstring or load
|
|
397
384
|
if not loader then
|
|
@@ -410,9 +397,8 @@ local P = {
|
|
|
410
397
|
script = script,
|
|
411
398
|
}
|
|
412
399
|
return P
|
|
413
|
-
end
|
|
414
|
-
|
|
415
|
-
source_shared_functional_decorator_10a6 = function()
|
|
400
|
+
end)() or false;b_c22[7] = function() return c end return c end
|
|
401
|
+
b_c22[8] = function() local c = (function()
|
|
416
402
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
417
403
|
return function (a, b, c, d, e, f)
|
|
418
404
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -468,6 +454,5 @@ prefix1 = decorator_prefix1,
|
|
|
468
454
|
prefix1_t = table_prefix1
|
|
469
455
|
}
|
|
470
456
|
return P
|
|
471
|
-
end
|
|
472
|
-
--
|
|
457
|
+
end)() or false;b_c22[8] = function() return c end return c end
|
|
473
458
|
return main_c22()
|