@gamely/gly-engine-micro 0.3.7 → 0.3.9
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 +34 -34
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
local
|
|
2
|
-
local
|
|
1
|
+
local b15e0 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
|
|
2
|
+
local r15e0 = function(i, f)
|
|
3
3
|
return function()
|
|
4
4
|
local c = f()
|
|
5
|
-
|
|
5
|
+
b15e0[i] = function() return c end
|
|
6
6
|
return c
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
|
|
10
|
-
local function
|
|
11
|
-
local version =
|
|
12
|
-
local engine_game =
|
|
13
|
-
local engine_key =
|
|
14
|
-
local engine_math =
|
|
15
|
-
local engine_math_clib =
|
|
16
|
-
local engine_math_random =
|
|
17
|
-
local engine_array =
|
|
18
|
-
local engine_api_draw_text =
|
|
19
|
-
local engine_api_draw_poly =
|
|
20
|
-
local engine_raw_memory =
|
|
21
|
-
local color =
|
|
22
|
-
local std =
|
|
23
|
-
local eval_code =
|
|
10
|
+
local function m15e0()
|
|
11
|
+
local version = b15e0[1]('source_version')
|
|
12
|
+
local engine_game = b15e0[2]('source_engine_api_system_app')
|
|
13
|
+
local engine_key = b15e0[3]('source_engine_api_system_key')
|
|
14
|
+
local engine_math = b15e0[4]('source_engine_api_math_basic')
|
|
15
|
+
local engine_math_clib = b15e0[5]('source_engine_api_math_clib')
|
|
16
|
+
local engine_math_random = b15e0[6]('source_engine_api_math_random')
|
|
17
|
+
local engine_array = b15e0[7]('source_engine_api_data_array')
|
|
18
|
+
local engine_api_draw_text = b15e0[8]('source_engine_api_draw_text')
|
|
19
|
+
local engine_api_draw_poly = b15e0[9]('source_engine_api_draw_poly')
|
|
20
|
+
local engine_raw_memory = b15e0[10]('source_engine_api_raw_memory')
|
|
21
|
+
local color = b15e0[11]('source_engine_api_system_color')
|
|
22
|
+
local std = b15e0[12]('source_shared_var_object_std')
|
|
23
|
+
local eval_code = b15e0[13]('source_shared_string_eval_code')
|
|
24
24
|
local f=function(a,b)end
|
|
25
25
|
local engine={keyboard=f}
|
|
26
26
|
local application={
|
|
@@ -135,10 +135,10 @@ version=version
|
|
|
135
135
|
}
|
|
136
136
|
return P
|
|
137
137
|
end
|
|
138
|
-
|
|
139
|
-
return '0.3.
|
|
138
|
+
b15e0[1] = r15e0(1, function()
|
|
139
|
+
return '0.3.9'
|
|
140
140
|
end)
|
|
141
|
-
|
|
141
|
+
b15e0[2] = r15e0(2, function()
|
|
142
142
|
local function reset(std, engine)
|
|
143
143
|
if std.node then
|
|
144
144
|
return function()
|
|
@@ -187,7 +187,7 @@ install=install
|
|
|
187
187
|
}
|
|
188
188
|
return P
|
|
189
189
|
end)
|
|
190
|
-
|
|
190
|
+
b15e0[3] = r15e0(3, function()
|
|
191
191
|
local function real_key(std, engine, rkey, rvalue)
|
|
192
192
|
local value = (rvalue == 1 or rvalue == true) or false
|
|
193
193
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -236,7 +236,7 @@ return {
|
|
|
236
236
|
install = install
|
|
237
237
|
}
|
|
238
238
|
end)
|
|
239
|
-
|
|
239
|
+
b15e0[4] = r15e0(4, function()
|
|
240
240
|
local function abs(value)
|
|
241
241
|
if value < 0 then
|
|
242
242
|
return -value
|
|
@@ -334,7 +334,7 @@ install = install
|
|
|
334
334
|
}
|
|
335
335
|
return P
|
|
336
336
|
end)
|
|
337
|
-
|
|
337
|
+
b15e0[5] = r15e0(5, function()
|
|
338
338
|
local function install(std)
|
|
339
339
|
assert(math and (1/2 ~= 0))
|
|
340
340
|
std.math = std.math or {}
|
|
@@ -369,7 +369,7 @@ install = install
|
|
|
369
369
|
}
|
|
370
370
|
return P
|
|
371
371
|
end)
|
|
372
|
-
|
|
372
|
+
b15e0[6] = r15e0(6, function()
|
|
373
373
|
local function install(std)
|
|
374
374
|
assert(math and (1/2 ~= 0))
|
|
375
375
|
std.math = std.math or {}
|
|
@@ -385,8 +385,8 @@ install = install
|
|
|
385
385
|
}
|
|
386
386
|
return P
|
|
387
387
|
end)
|
|
388
|
-
|
|
389
|
-
local util_decorator =
|
|
388
|
+
b15e0[7] = r15e0(7, function()
|
|
389
|
+
local util_decorator = b15e0[15]('source_shared_functional_decorator')
|
|
390
390
|
local function array_map(array, func)
|
|
391
391
|
local res = {}
|
|
392
392
|
local index = 1
|
|
@@ -546,7 +546,7 @@ install = install
|
|
|
546
546
|
}
|
|
547
547
|
return P
|
|
548
548
|
end)
|
|
549
|
-
|
|
549
|
+
b15e0[8] = r15e0(8, function()
|
|
550
550
|
local function text_put(std, engine, font_previous)
|
|
551
551
|
return function(pos_x, pos_y, text, size)
|
|
552
552
|
size = size or 2
|
|
@@ -578,7 +578,7 @@ install=install
|
|
|
578
578
|
}
|
|
579
579
|
return P
|
|
580
580
|
end)
|
|
581
|
-
|
|
581
|
+
b15e0[9] = r15e0(9, function()
|
|
582
582
|
local function decorator_poo(object, func)
|
|
583
583
|
if not object or not func then return func end
|
|
584
584
|
return function(a, b, c, d)
|
|
@@ -684,7 +684,7 @@ install=install
|
|
|
684
684
|
}
|
|
685
685
|
return P
|
|
686
686
|
end)
|
|
687
|
-
|
|
687
|
+
b15e0[10] = r15e0(10, function()
|
|
688
688
|
local memory_dict_unload = {}
|
|
689
689
|
local memory_dict = {}
|
|
690
690
|
local memory_list = {}
|
|
@@ -738,7 +738,7 @@ install=install
|
|
|
738
738
|
}
|
|
739
739
|
return P
|
|
740
740
|
end)
|
|
741
|
-
|
|
741
|
+
b15e0[11] = r15e0(11, function()
|
|
742
742
|
local function install(std)
|
|
743
743
|
std.color = std.color or {}
|
|
744
744
|
std.color.white = 0xFFFFFFFF
|
|
@@ -772,7 +772,7 @@ install = install
|
|
|
772
772
|
}
|
|
773
773
|
return P
|
|
774
774
|
end)
|
|
775
|
-
|
|
775
|
+
b15e0[12] = r15e0(12, function()
|
|
776
776
|
local P = {
|
|
777
777
|
milis = 0,
|
|
778
778
|
delta = 0,
|
|
@@ -839,7 +839,7 @@ any=false
|
|
|
839
839
|
}
|
|
840
840
|
return P;
|
|
841
841
|
end)
|
|
842
|
-
|
|
842
|
+
b15e0[13] = r15e0(13, function()
|
|
843
843
|
local function script(src)
|
|
844
844
|
local loader = loadstring or load
|
|
845
845
|
if not loader then
|
|
@@ -859,7 +859,7 @@ script = script,
|
|
|
859
859
|
}
|
|
860
860
|
return P
|
|
861
861
|
end)
|
|
862
|
-
|
|
862
|
+
b15e0[15] = r15e0(15, function()
|
|
863
863
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
864
864
|
return function (a, b, c, d, e, f)
|
|
865
865
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -916,4 +916,4 @@ prefix1_t = table_prefix1
|
|
|
916
916
|
}
|
|
917
917
|
return P
|
|
918
918
|
end)
|
|
919
|
-
return
|
|
919
|
+
return m15e0()
|