@gamely/gly-engine-micro 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 +36 -36
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
local
|
|
2
|
-
local
|
|
1
|
+
local b1483 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
|
|
2
|
+
local r1483 = function(i, f)
|
|
3
3
|
return function()
|
|
4
4
|
local c = f()
|
|
5
|
-
|
|
5
|
+
b1483[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 m1483()
|
|
11
|
+
local version = b1483[1]('source_version')
|
|
12
|
+
local engine_game = b1483[2]('source_engine_api_system_app')
|
|
13
|
+
local engine_key = b1483[3]('source_engine_api_system_key')
|
|
14
|
+
local engine_math = b1483[4]('source_engine_api_math_basic')
|
|
15
|
+
local engine_math_clib = b1483[5]('source_engine_api_math_clib')
|
|
16
|
+
local engine_math_random = b1483[6]('source_engine_api_math_random')
|
|
17
|
+
local engine_array = b1483[7]('source_engine_api_data_array')
|
|
18
|
+
local engine_api_draw_text = b1483[8]('source_engine_api_draw_text')
|
|
19
|
+
local engine_api_draw_poly = b1483[9]('source_engine_api_draw_poly')
|
|
20
|
+
local engine_raw_memory = b1483[10]('source_engine_api_raw_memory')
|
|
21
|
+
local color = b1483[11]('source_engine_api_system_color')
|
|
22
|
+
local std = b1483[12]('source_shared_var_object_std')
|
|
23
|
+
local eval_code = b1483[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,11 +135,11 @@ version=version
|
|
|
135
135
|
}
|
|
136
136
|
return P
|
|
137
137
|
end
|
|
138
|
-
|
|
139
|
-
return '0.
|
|
138
|
+
b1483[1] = r1483(1, function()
|
|
139
|
+
return '0.3.0'
|
|
140
140
|
end)
|
|
141
|
-
|
|
142
|
-
local util_decorator =
|
|
141
|
+
b1483[2] = r1483(2, function()
|
|
142
|
+
local util_decorator = b1483[14]('source_shared_functional_decorator')
|
|
143
143
|
local function reset(std, engine)
|
|
144
144
|
if std.node then
|
|
145
145
|
std.bus.emit('exit')
|
|
@@ -178,7 +178,7 @@ install=install
|
|
|
178
178
|
}
|
|
179
179
|
return P
|
|
180
180
|
end)
|
|
181
|
-
|
|
181
|
+
b1483[3] = r1483(3, function()
|
|
182
182
|
local function real_key(std, engine, rkey, rvalue)
|
|
183
183
|
local value = rvalue == 1 or rvalue == true
|
|
184
184
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -214,7 +214,7 @@ install = install
|
|
|
214
214
|
}
|
|
215
215
|
return P
|
|
216
216
|
end)
|
|
217
|
-
|
|
217
|
+
b1483[4] = r1483(4, function()
|
|
218
218
|
local function abs(value)
|
|
219
219
|
if value < 0 then
|
|
220
220
|
return -value
|
|
@@ -312,7 +312,7 @@ install = install
|
|
|
312
312
|
}
|
|
313
313
|
return P
|
|
314
314
|
end)
|
|
315
|
-
|
|
315
|
+
b1483[5] = r1483(5, function()
|
|
316
316
|
local function install(std)
|
|
317
317
|
assert(math and (1/2 ~= 0))
|
|
318
318
|
std.math = std.math or {}
|
|
@@ -347,7 +347,7 @@ install = install
|
|
|
347
347
|
}
|
|
348
348
|
return P
|
|
349
349
|
end)
|
|
350
|
-
|
|
350
|
+
b1483[6] = r1483(6, function()
|
|
351
351
|
local function install(std)
|
|
352
352
|
assert(math and (1/2 ~= 0))
|
|
353
353
|
std.math = std.math or {}
|
|
@@ -363,8 +363,8 @@ install = install
|
|
|
363
363
|
}
|
|
364
364
|
return P
|
|
365
365
|
end)
|
|
366
|
-
|
|
367
|
-
local util_decorator =
|
|
366
|
+
b1483[7] = r1483(7, function()
|
|
367
|
+
local util_decorator = b1483[14]('source_shared_functional_decorator')
|
|
368
368
|
local function array_map(array, func)
|
|
369
369
|
local res = {}
|
|
370
370
|
local index = 1
|
|
@@ -524,8 +524,8 @@ install = install
|
|
|
524
524
|
}
|
|
525
525
|
return P
|
|
526
526
|
end)
|
|
527
|
-
|
|
528
|
-
local util_decorator =
|
|
527
|
+
b1483[8] = r1483(8, function()
|
|
528
|
+
local util_decorator = b1483[14]('source_shared_functional_decorator')
|
|
529
529
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
530
530
|
size = size or 2
|
|
531
531
|
local hem = engine.current.data.width / 80
|
|
@@ -553,7 +553,7 @@ install=install
|
|
|
553
553
|
}
|
|
554
554
|
return P
|
|
555
555
|
end)
|
|
556
|
-
|
|
556
|
+
b1483[9] = r1483(9, function()
|
|
557
557
|
local function decorator_poo(object, func)
|
|
558
558
|
if not object or not func then return func end
|
|
559
559
|
return function(a, b, c, d)
|
|
@@ -659,7 +659,7 @@ install=install
|
|
|
659
659
|
}
|
|
660
660
|
return P
|
|
661
661
|
end)
|
|
662
|
-
|
|
662
|
+
b1483[10] = r1483(10, function()
|
|
663
663
|
local memory_dict_unload = {}
|
|
664
664
|
local memory_dict = {}
|
|
665
665
|
local memory_list = {}
|
|
@@ -713,7 +713,7 @@ install=install
|
|
|
713
713
|
}
|
|
714
714
|
return P
|
|
715
715
|
end)
|
|
716
|
-
|
|
716
|
+
b1483[11] = r1483(11, function()
|
|
717
717
|
local function install(std)
|
|
718
718
|
std.color = std.color or {}
|
|
719
719
|
std.color.white = 0xFFFFFFFF
|
|
@@ -747,7 +747,7 @@ install = install
|
|
|
747
747
|
}
|
|
748
748
|
return P
|
|
749
749
|
end)
|
|
750
|
-
|
|
750
|
+
b1483[12] = r1483(12, function()
|
|
751
751
|
local P = {
|
|
752
752
|
milis = 0,
|
|
753
753
|
delta = 0,
|
|
@@ -814,7 +814,7 @@ any=false
|
|
|
814
814
|
}
|
|
815
815
|
return P;
|
|
816
816
|
end)
|
|
817
|
-
|
|
817
|
+
b1483[13] = r1483(13, function()
|
|
818
818
|
local function script(src)
|
|
819
819
|
local loader = loadstring or load
|
|
820
820
|
if not loader then
|
|
@@ -834,7 +834,7 @@ script = script,
|
|
|
834
834
|
}
|
|
835
835
|
return P
|
|
836
836
|
end)
|
|
837
|
-
|
|
837
|
+
b1483[14] = r1483(14, function()
|
|
838
838
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
839
839
|
return function (a, b, c, d, e, f)
|
|
840
840
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -891,4 +891,4 @@ prefix1_t = table_prefix1
|
|
|
891
891
|
}
|
|
892
892
|
return P
|
|
893
893
|
end)
|
|
894
|
-
return
|
|
894
|
+
return m1483()
|