@gamely/gly-engine-nano 0.3.6 → 0.3.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 +20 -20
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
local
|
|
2
|
-
local
|
|
1
|
+
local bcbc = {0,0,0,0,0,0,0}
|
|
2
|
+
local rcbc = function(i, f)
|
|
3
3
|
return function()
|
|
4
4
|
local c = f()
|
|
5
|
-
|
|
5
|
+
bcbc[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 mcbc()
|
|
10
|
+
local version = bcbc[1]('source_version')
|
|
11
|
+
local engine_key = bcbc[2]('source_engine_api_system_key')
|
|
12
|
+
local engine_api_draw_text = bcbc[3]('source_engine_api_draw_text')
|
|
13
|
+
local engine_api_draw_poly = bcbc[4]('source_engine_api_draw_poly')
|
|
14
|
+
local color = bcbc[5]('source_engine_api_system_color')
|
|
15
|
+
local std = bcbc[6]('source_shared_var_object_std')
|
|
16
|
+
local eval_code = bcbc[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.3.
|
|
118
|
+
bcbc[1] = rcbc(1, function()
|
|
119
|
+
return '0.3.8'
|
|
120
120
|
end)
|
|
121
|
-
|
|
121
|
+
bcbc[2] = rcbc(2, function()
|
|
122
122
|
local function real_key(std, engine, rkey, rvalue)
|
|
123
123
|
local value = (rvalue == 1 or rvalue == true) or false
|
|
124
124
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -167,7 +167,7 @@ return {
|
|
|
167
167
|
install = install
|
|
168
168
|
}
|
|
169
169
|
end)
|
|
170
|
-
|
|
170
|
+
bcbc[3] = rcbc(3, function()
|
|
171
171
|
local function text_put(std, engine, font_previous)
|
|
172
172
|
return function(pos_x, pos_y, text, size)
|
|
173
173
|
size = size or 2
|
|
@@ -199,7 +199,7 @@ install=install
|
|
|
199
199
|
}
|
|
200
200
|
return P
|
|
201
201
|
end)
|
|
202
|
-
|
|
202
|
+
bcbc[4] = rcbc(4, function()
|
|
203
203
|
local function decorator_poo(object, func)
|
|
204
204
|
if not object or not func then return func end
|
|
205
205
|
return function(a, b, c, d)
|
|
@@ -305,7 +305,7 @@ install=install
|
|
|
305
305
|
}
|
|
306
306
|
return P
|
|
307
307
|
end)
|
|
308
|
-
|
|
308
|
+
bcbc[5] = rcbc(5, function()
|
|
309
309
|
local function install(std)
|
|
310
310
|
std.color = std.color or {}
|
|
311
311
|
std.color.white = 0xFFFFFFFF
|
|
@@ -339,7 +339,7 @@ install = install
|
|
|
339
339
|
}
|
|
340
340
|
return P
|
|
341
341
|
end)
|
|
342
|
-
|
|
342
|
+
bcbc[6] = rcbc(6, function()
|
|
343
343
|
local P = {
|
|
344
344
|
milis = 0,
|
|
345
345
|
delta = 0,
|
|
@@ -406,7 +406,7 @@ any=false
|
|
|
406
406
|
}
|
|
407
407
|
return P;
|
|
408
408
|
end)
|
|
409
|
-
|
|
409
|
+
bcbc[7] = rcbc(7, function()
|
|
410
410
|
local function script(src)
|
|
411
411
|
local loader = loadstring or load
|
|
412
412
|
if not loader then
|
|
@@ -426,4 +426,4 @@ script = script,
|
|
|
426
426
|
}
|
|
427
427
|
return P
|
|
428
428
|
end)
|
|
429
|
-
return
|
|
429
|
+
return mcbc()
|