@gamely/gly-engine-micro 0.2.6 → 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 +55 -75
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,32 +1,26 @@
|
|
|
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
|
+
return function()
|
|
4
|
+
local c = f()
|
|
5
|
+
b1483[i] = function() return c end
|
|
6
|
+
return c
|
|
7
|
+
end
|
|
8
|
+
end
|
|
1
9
|
local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
|
|
2
|
-
local
|
|
3
|
-
local
|
|
4
|
-
local
|
|
5
|
-
local
|
|
6
|
-
local
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
11
|
-
local
|
|
12
|
-
local
|
|
13
|
-
local
|
|
14
|
-
local
|
|
15
|
-
local
|
|
16
|
-
local function main_142f()
|
|
17
|
-
local version = source_version_1438()
|
|
18
|
-
local engine_game = source_engine_api_system_app_144a()
|
|
19
|
-
local engine_key = source_engine_api_system_key_1455()
|
|
20
|
-
local engine_math = source_engine_api_math_basic_1460()
|
|
21
|
-
local engine_math_clib = source_engine_api_math_clib_146b()
|
|
22
|
-
local engine_math_random = source_engine_api_math_random_1476()
|
|
23
|
-
local engine_array = source_engine_api_data_array_1481()
|
|
24
|
-
local engine_api_draw_text = source_engine_api_draw_text_148c()
|
|
25
|
-
local engine_api_draw_poly = source_engine_api_draw_poly_1497()
|
|
26
|
-
local engine_raw_memory = source_engine_api_raw_memory_14a2()
|
|
27
|
-
local color = source_engine_api_system_color_14b4()
|
|
28
|
-
local std = source_shared_var_object_std_14bf()
|
|
29
|
-
local eval_code = source_shared_string_eval_code_14d1()
|
|
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')
|
|
30
24
|
local f=function(a,b)end
|
|
31
25
|
local engine={keyboard=f}
|
|
32
26
|
local application={
|
|
@@ -141,12 +135,11 @@ version=version
|
|
|
141
135
|
}
|
|
142
136
|
return P
|
|
143
137
|
end
|
|
144
|
-
|
|
145
|
-
return '0.
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
local util_decorator = source_shared_functional_decorator_1856()
|
|
138
|
+
b1483[1] = r1483(1, function()
|
|
139
|
+
return '0.3.0'
|
|
140
|
+
end)
|
|
141
|
+
b1483[2] = r1483(2, function()
|
|
142
|
+
local util_decorator = b1483[14]('source_shared_functional_decorator')
|
|
150
143
|
local function reset(std, engine)
|
|
151
144
|
if std.node then
|
|
152
145
|
std.bus.emit('exit')
|
|
@@ -184,9 +177,8 @@ local P = {
|
|
|
184
177
|
install=install
|
|
185
178
|
}
|
|
186
179
|
return P
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
source_engine_api_system_key_1455 = function()
|
|
180
|
+
end)
|
|
181
|
+
b1483[3] = r1483(3, function()
|
|
190
182
|
local function real_key(std, engine, rkey, rvalue)
|
|
191
183
|
local value = rvalue == 1 or rvalue == true
|
|
192
184
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -221,9 +213,8 @@ local P = {
|
|
|
221
213
|
install = install
|
|
222
214
|
}
|
|
223
215
|
return P
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
source_engine_api_math_basic_1460 = function()
|
|
216
|
+
end)
|
|
217
|
+
b1483[4] = r1483(4, function()
|
|
227
218
|
local function abs(value)
|
|
228
219
|
if value < 0 then
|
|
229
220
|
return -value
|
|
@@ -320,9 +311,8 @@ local P = {
|
|
|
320
311
|
install = install
|
|
321
312
|
}
|
|
322
313
|
return P
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
source_engine_api_math_clib_146b = function()
|
|
314
|
+
end)
|
|
315
|
+
b1483[5] = r1483(5, function()
|
|
326
316
|
local function install(std)
|
|
327
317
|
assert(math and (1/2 ~= 0))
|
|
328
318
|
std.math = std.math or {}
|
|
@@ -356,9 +346,8 @@ local P = {
|
|
|
356
346
|
install = install
|
|
357
347
|
}
|
|
358
348
|
return P
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
source_engine_api_math_random_1476 = function()
|
|
349
|
+
end)
|
|
350
|
+
b1483[6] = r1483(6, function()
|
|
362
351
|
local function install(std)
|
|
363
352
|
assert(math and (1/2 ~= 0))
|
|
364
353
|
std.math = std.math or {}
|
|
@@ -373,10 +362,9 @@ local P = {
|
|
|
373
362
|
install = install
|
|
374
363
|
}
|
|
375
364
|
return P
|
|
376
|
-
end
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
local util_decorator = source_shared_functional_decorator_1856()
|
|
365
|
+
end)
|
|
366
|
+
b1483[7] = r1483(7, function()
|
|
367
|
+
local util_decorator = b1483[14]('source_shared_functional_decorator')
|
|
380
368
|
local function array_map(array, func)
|
|
381
369
|
local res = {}
|
|
382
370
|
local index = 1
|
|
@@ -535,10 +523,9 @@ local P = {
|
|
|
535
523
|
install = install
|
|
536
524
|
}
|
|
537
525
|
return P
|
|
538
|
-
end
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
local util_decorator = source_shared_functional_decorator_1856()
|
|
526
|
+
end)
|
|
527
|
+
b1483[8] = r1483(8, function()
|
|
528
|
+
local util_decorator = b1483[14]('source_shared_functional_decorator')
|
|
542
529
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
543
530
|
size = size or 2
|
|
544
531
|
local hem = engine.current.data.width / 80
|
|
@@ -565,9 +552,8 @@ local P = {
|
|
|
565
552
|
install=install
|
|
566
553
|
}
|
|
567
554
|
return P
|
|
568
|
-
end
|
|
569
|
-
|
|
570
|
-
source_engine_api_draw_poly_1497 = function()
|
|
555
|
+
end)
|
|
556
|
+
b1483[9] = r1483(9, function()
|
|
571
557
|
local function decorator_poo(object, func)
|
|
572
558
|
if not object or not func then return func end
|
|
573
559
|
return function(a, b, c, d)
|
|
@@ -672,9 +658,8 @@ local P = {
|
|
|
672
658
|
install=install
|
|
673
659
|
}
|
|
674
660
|
return P
|
|
675
|
-
end
|
|
676
|
-
|
|
677
|
-
source_engine_api_raw_memory_14a2 = function()
|
|
661
|
+
end)
|
|
662
|
+
b1483[10] = r1483(10, function()
|
|
678
663
|
local memory_dict_unload = {}
|
|
679
664
|
local memory_dict = {}
|
|
680
665
|
local memory_list = {}
|
|
@@ -727,9 +712,8 @@ local P = {
|
|
|
727
712
|
install=install
|
|
728
713
|
}
|
|
729
714
|
return P
|
|
730
|
-
end
|
|
731
|
-
|
|
732
|
-
source_engine_api_system_color_14b4 = function()
|
|
715
|
+
end)
|
|
716
|
+
b1483[11] = r1483(11, function()
|
|
733
717
|
local function install(std)
|
|
734
718
|
std.color = std.color or {}
|
|
735
719
|
std.color.white = 0xFFFFFFFF
|
|
@@ -762,9 +746,8 @@ local P = {
|
|
|
762
746
|
install = install
|
|
763
747
|
}
|
|
764
748
|
return P
|
|
765
|
-
end
|
|
766
|
-
|
|
767
|
-
source_shared_var_object_std_14bf = function()
|
|
749
|
+
end)
|
|
750
|
+
b1483[12] = r1483(12, function()
|
|
768
751
|
local P = {
|
|
769
752
|
milis = 0,
|
|
770
753
|
delta = 0,
|
|
@@ -830,9 +813,8 @@ any=false
|
|
|
830
813
|
}
|
|
831
814
|
}
|
|
832
815
|
return P;
|
|
833
|
-
end
|
|
834
|
-
|
|
835
|
-
source_shared_string_eval_code_14d1 = function()
|
|
816
|
+
end)
|
|
817
|
+
b1483[13] = r1483(13, function()
|
|
836
818
|
local function script(src)
|
|
837
819
|
local loader = loadstring or load
|
|
838
820
|
if not loader then
|
|
@@ -851,9 +833,8 @@ local P = {
|
|
|
851
833
|
script = script,
|
|
852
834
|
}
|
|
853
835
|
return P
|
|
854
|
-
end
|
|
855
|
-
|
|
856
|
-
source_shared_functional_decorator_1856 = function()
|
|
836
|
+
end)
|
|
837
|
+
b1483[14] = r1483(14, function()
|
|
857
838
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
858
839
|
return function (a, b, c, d, e, f)
|
|
859
840
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -909,6 +890,5 @@ prefix1 = decorator_prefix1,
|
|
|
909
890
|
prefix1_t = table_prefix1
|
|
910
891
|
}
|
|
911
892
|
return P
|
|
912
|
-
end
|
|
913
|
-
|
|
914
|
-
return main_142f()
|
|
893
|
+
end)
|
|
894
|
+
return m1483()
|