@gamely/gly-engine-nano 0.2.7 → 0.3.0
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 +22 -22
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
local
|
|
2
|
-
local
|
|
1
|
+
local bc9d = {0,0,0,0,0,0,0,0}
|
|
2
|
+
local rc9d = function(i, f)
|
|
3
3
|
return function()
|
|
4
4
|
local c = f()
|
|
5
|
-
|
|
5
|
+
bc9d[i] = function() return c end
|
|
6
6
|
return c
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
|
-
local function
|
|
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 =
|
|
9
|
+
local function mc9d()
|
|
10
|
+
local version = bc9d[1]('source_version')
|
|
11
|
+
local engine_key = bc9d[2]('source_engine_api_system_key')
|
|
12
|
+
local engine_api_draw_text = bc9d[3]('source_engine_api_draw_text')
|
|
13
|
+
local engine_api_draw_poly = bc9d[4]('source_engine_api_draw_poly')
|
|
14
|
+
local color = bc9d[5]('source_engine_api_system_color')
|
|
15
|
+
local std = bc9d[6]('source_shared_var_object_std')
|
|
16
|
+
local eval_code = bc9d[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,10 +115,10 @@ version=version
|
|
|
115
115
|
}
|
|
116
116
|
return P
|
|
117
117
|
end
|
|
118
|
-
|
|
119
|
-
return '0.
|
|
118
|
+
bc9d[1] = rc9d(1, function()
|
|
119
|
+
return '0.3.0'
|
|
120
120
|
end)
|
|
121
|
-
|
|
121
|
+
bc9d[2] = rc9d(2, function()
|
|
122
122
|
local function real_key(std, engine, rkey, rvalue)
|
|
123
123
|
local value = rvalue == 1 or rvalue == true
|
|
124
124
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -154,8 +154,8 @@ install = install
|
|
|
154
154
|
}
|
|
155
155
|
return P
|
|
156
156
|
end)
|
|
157
|
-
|
|
158
|
-
local util_decorator =
|
|
157
|
+
bc9d[3] = rc9d(3, function()
|
|
158
|
+
local util_decorator = bc9d[8]('source_shared_functional_decorator')
|
|
159
159
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
160
160
|
size = size or 2
|
|
161
161
|
local hem = engine.current.data.width / 80
|
|
@@ -183,7 +183,7 @@ install=install
|
|
|
183
183
|
}
|
|
184
184
|
return P
|
|
185
185
|
end)
|
|
186
|
-
|
|
186
|
+
bc9d[4] = rc9d(4, function()
|
|
187
187
|
local function decorator_poo(object, func)
|
|
188
188
|
if not object or not func then return func end
|
|
189
189
|
return function(a, b, c, d)
|
|
@@ -289,7 +289,7 @@ install=install
|
|
|
289
289
|
}
|
|
290
290
|
return P
|
|
291
291
|
end)
|
|
292
|
-
|
|
292
|
+
bc9d[5] = rc9d(5, function()
|
|
293
293
|
local function install(std)
|
|
294
294
|
std.color = std.color or {}
|
|
295
295
|
std.color.white = 0xFFFFFFFF
|
|
@@ -323,7 +323,7 @@ install = install
|
|
|
323
323
|
}
|
|
324
324
|
return P
|
|
325
325
|
end)
|
|
326
|
-
|
|
326
|
+
bc9d[6] = rc9d(6, function()
|
|
327
327
|
local P = {
|
|
328
328
|
milis = 0,
|
|
329
329
|
delta = 0,
|
|
@@ -390,7 +390,7 @@ any=false
|
|
|
390
390
|
}
|
|
391
391
|
return P;
|
|
392
392
|
end)
|
|
393
|
-
|
|
393
|
+
bc9d[7] = rc9d(7, function()
|
|
394
394
|
local function script(src)
|
|
395
395
|
local loader = loadstring or load
|
|
396
396
|
if not loader then
|
|
@@ -410,7 +410,7 @@ script = script,
|
|
|
410
410
|
}
|
|
411
411
|
return P
|
|
412
412
|
end)
|
|
413
|
-
|
|
413
|
+
bc9d[8] = rc9d(8, function()
|
|
414
414
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
415
415
|
return function (a, b, c, d, e, f)
|
|
416
416
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -467,4 +467,4 @@ prefix1_t = table_prefix1
|
|
|
467
467
|
}
|
|
468
468
|
return P
|
|
469
469
|
end)
|
|
470
|
-
return
|
|
470
|
+
return mc9d()
|