@defold-typescript/library-types 0.23.0 → 0.24.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/api-doc/boom.json +3870 -0
- package/api-doc/bridge.json +10 -5
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/decore.json +1 -1
- package/api-doc/defcon.json +150 -0
- package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
- package/api-doc/defsave.json +518 -0
- package/api-doc/deftest.json +741 -0
- package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
- package/api-doc/druid.json +90 -92
- package/api-doc/event.json +16 -16
- package/api-doc/gooey.json +2050 -0
- package/api-doc/in.accelerometer.json +75 -1
- package/api-doc/in.button.json +17 -10
- package/api-doc/in.cursor.json +26 -0
- package/api-doc/in.gesture.json +401 -6
- package/api-doc/in.keyboard.json +2 -0
- package/api-doc/in.mapper.json +12 -8
- package/api-doc/in.onscreen.json +61 -5
- package/api-doc/in.state.json +61 -13
- package/api-doc/in.textbox.json +23 -12
- package/api-doc/in.triggers.json +336 -0
- package/api-doc/lang.json +5 -5
- package/api-doc/log.json +1 -1
- package/api-doc/metrics.fps.json +61 -2
- package/api-doc/metrics.mem.json +61 -2
- package/api-doc/monarch.monarch.json +249 -7
- package/api-doc/monarch.transitions.easings.json +19 -26
- package/api-doc/monarch.transitions.gui.json +782 -79
- package/api-doc/nakama.engine.defold.json +31 -18
- package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
- package/api-doc/nakama.util.log.json +32 -4
- package/api-doc/narrator.json +1 -1
- package/api-doc/openapi/nakama.nakama.json +7680 -0
- package/api-doc/orthographic.camera.json +96 -98
- package/api-doc/orthographic.json +602 -0
- package/api-doc/panthera.json +1183 -0
- package/api-doc/{persist.persist.json → persist.json} +26 -1
- package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
- package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
- package/api-doc/richtext.color.json +77 -0
- package/api-doc/richtext.richtext.json +375 -5
- package/api-doc/saver.saver.json +2 -1
- package/api-doc/saver.storage.json +2 -1
- package/api-doc/{starly.starly.json → starly.json} +1 -1
- package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
- package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
- package/authored-targets.json +403 -0
- package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
- package/generated/bridge.d.ts +5 -5
- package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
- package/generated/decore.d.ts +1 -1
- package/generated/defcon.d.ts +43 -0
- package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
- package/generated/defsave.d.ts +144 -0
- package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
- package/generated/druid.d.ts +81 -79
- package/generated/event.d.ts +15 -15
- package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
- package/generated/in.onscreen.d.ts +5 -0
- package/generated/in.textbox.d.ts +4 -0
- package/generated/lang.d.ts +5 -5
- package/generated/log.d.ts +1 -1
- package/generated/metrics.fps.d.ts +19 -1
- package/generated/metrics.mem.d.ts +19 -1
- package/generated/monarch.monarch.d.ts +44 -1
- package/generated/monarch.transitions.easings.d.ts +0 -1
- package/generated/monarch.transitions.gui.d.ts +96 -12
- package/generated/nakama.d.ts +1158 -0
- package/generated/nakama.engine.defold.d.ts +3 -1
- package/generated/nakama.util.log.d.ts +6 -0
- package/generated/narrator.d.ts +1 -1
- package/generated/openapi/nakama.nakama.d.ts +884 -0
- package/generated/orthographic.camera.d.ts +24 -38
- package/generated/orthographic.d.ts +155 -0
- package/generated/panthera.d.ts +170 -0
- package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
- package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
- package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
- package/generated/richtext.color.d.ts +15 -0
- package/generated/saver.saver.d.ts +2 -0
- package/generated/saver.storage.d.ts +2 -0
- package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
- package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
- package/library-classification.json +0 -156
- package/library-targets.json +1 -218
- package/luals-targets.json +56 -3
- package/openapi-targets.json +17 -0
- package/package.json +7 -57
- package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
- package/scripts/apply-luals-overrides.ts +39 -7
- package/scripts/authored-parity.ts +718 -0
- package/scripts/emit-library-dts.ts +94 -17
- package/scripts/extract-api-doc.ts +189 -38
- package/scripts/fidelity-floor.ts +178 -0
- package/scripts/import-upstream-docs.ts +125 -0
- package/scripts/lower-api-doc.ts +21 -3
- package/scripts/luals-fidelity.ts +16 -11
- package/scripts/map-luals-types.ts +52 -21
- package/scripts/parse-lua-surface.ts +187 -0
- package/scripts/parse-luals.ts +50 -4
- package/scripts/parse-markdown-api.ts +247 -0
- package/scripts/parse-openapi-api.ts +313 -0
- package/scripts/sync-authored-types.ts +249 -0
- package/scripts/sync-library-types.ts +99 -3
- package/scripts/sync-luals-types.ts +14 -1
- package/scripts/sync-markdown-types.ts +761 -0
- package/scripts/sync-openapi-types.ts +308 -0
- package/scripts/sync-script-api-types.ts +16 -17
- package/api-doc/boom.boom.json +0 -26
- package/api-doc/bzAnim.bzLibrary.json +0 -156
- package/api-doc/defcon.console.json +0 -109
- package/api-doc/defsave.defsave.json +0 -175
- package/api-doc/deftest.deftest.json +0 -71
- package/api-doc/gooey.gooey.json +0 -963
- package/generated/defcon.console.d.ts +0 -24
- package/generated/defsave.defsave.d.ts +0 -31
- package/generated/nakama.nakama.d.ts +0 -594
- /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
- /package/generated/{starly.starly.d.ts → starly.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"info": {
|
|
3
|
-
"namespace": "zzfx
|
|
3
|
+
"namespace": "zzfx",
|
|
4
4
|
"brief": "ZzFX extension for Defold",
|
|
5
5
|
"description": "ZzFX extension for Defold"
|
|
6
6
|
},
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
{
|
|
9
9
|
"type": "FUNCTION",
|
|
10
10
|
"name": "play",
|
|
11
|
-
"brief": "",
|
|
12
|
-
"description": "",
|
|
11
|
+
"brief": "Build a sample from a ZzFX parameter list and play it in one call.",
|
|
12
|
+
"description": "Build a sample from a ZzFX parameter list and play it in one call.",
|
|
13
13
|
"parameters": [
|
|
14
14
|
{
|
|
15
15
|
"name": "args",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
{
|
|
26
26
|
"type": "FUNCTION",
|
|
27
27
|
"name": "samplerate",
|
|
28
|
-
"brief": "",
|
|
29
|
-
"description": "",
|
|
28
|
+
"brief": "Set the sample rate used to render subsequent samples. Defaults to 44100.",
|
|
29
|
+
"description": "Set the sample rate used to render subsequent samples. Defaults to 44100.",
|
|
30
30
|
"parameters": [
|
|
31
31
|
{
|
|
32
32
|
"name": "rate",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
{
|
|
43
43
|
"type": "FUNCTION",
|
|
44
44
|
"name": "play_sample",
|
|
45
|
-
"brief": "",
|
|
46
|
-
"description": "",
|
|
45
|
+
"brief": "Play a sample previously returned by {@link build_sample}.",
|
|
46
|
+
"description": "Play a sample previously returned by {@link build_sample}.",
|
|
47
47
|
"parameters": [
|
|
48
48
|
{
|
|
49
49
|
"name": "sample",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
{
|
|
60
60
|
"type": "FUNCTION",
|
|
61
61
|
"name": "build_sample",
|
|
62
|
-
"brief": "",
|
|
63
|
-
"description": "",
|
|
62
|
+
"brief": "Build a reusable sample from a ZzFX parameter list, without playing it.",
|
|
63
|
+
"description": "Build a reusable sample from a ZzFX parameter list, without playing it.",
|
|
64
64
|
"parameters": [
|
|
65
65
|
{
|
|
66
66
|
"name": "args",
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"targets": [
|
|
3
|
+
{
|
|
4
|
+
"repo": "https://github.com/britzl/defcon",
|
|
5
|
+
"ref": "2.6.0",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"authored": "fixtures/authored/defcon.console.d.ts",
|
|
8
|
+
"moduleId": "defcon.console",
|
|
9
|
+
"namespace": "defcon",
|
|
10
|
+
"generated": "generated/defcon.d.ts",
|
|
11
|
+
"apiDoc": "api-doc/defcon.json",
|
|
12
|
+
"upstreamLua": ["fixtures/upstream-lua/defcon/defcon/console.lua"]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"repo": "https://github.com/britzl/deftest",
|
|
16
|
+
"ref": "2.8.0",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"authored": "fixtures/authored/deftest.deftest.d.ts",
|
|
19
|
+
"moduleId": "deftest.deftest",
|
|
20
|
+
"namespace": "deftest",
|
|
21
|
+
"generated": "generated/deftest.d.ts",
|
|
22
|
+
"apiDoc": "api-doc/deftest.json",
|
|
23
|
+
"upstreamLua": ["fixtures/upstream-lua/deftest/deftest/deftest.lua"]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"repo": "https://github.com/subsoap/defmath",
|
|
27
|
+
"ref": "c67c227322334056cea7a631f3ddcdf2bcfd480c",
|
|
28
|
+
"license": "CC0-1.0",
|
|
29
|
+
"authored": "fixtures/authored/defmath.defmath.d.ts",
|
|
30
|
+
"moduleId": "defmath.defmath",
|
|
31
|
+
"namespace": "defmath",
|
|
32
|
+
"generated": "generated/defmath.d.ts",
|
|
33
|
+
"apiDoc": "api-doc/defmath.json",
|
|
34
|
+
"upstreamLua": ["fixtures/upstream-lua/defmath/defmath/defmath.lua"]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"repo": "https://github.com/subsoap/defsave",
|
|
38
|
+
"ref": "v1.2.6",
|
|
39
|
+
"license": "CC0-1.0",
|
|
40
|
+
"authored": "fixtures/authored/defsave.defsave.d.ts",
|
|
41
|
+
"moduleId": "defsave.defsave",
|
|
42
|
+
"namespace": "defsave",
|
|
43
|
+
"generated": "generated/defsave.d.ts",
|
|
44
|
+
"apiDoc": "api-doc/defsave.json",
|
|
45
|
+
"upstreamLua": ["fixtures/upstream-lua/defsave/defsave/defsave.lua"]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"repo": "https://github.com/thejustinwalsh/defold-zzfx",
|
|
49
|
+
"ref": "8c90e12c5b83dd39ebc7a6c0fd28aafd8e7b1eac",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"authored": "fixtures/authored/zzfx.api.d.ts",
|
|
52
|
+
"moduleId": "zzfx.api",
|
|
53
|
+
"namespace": "zzfx",
|
|
54
|
+
"generated": "generated/zzfx.d.ts",
|
|
55
|
+
"apiDoc": "api-doc/zzfx.json",
|
|
56
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-zzfx/zzfx/api.lua"]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"repo": "https://github.com/britzl/boom",
|
|
60
|
+
"ref": "5d47820c947dc7b68d1702dfadbf27e6e74e9319",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"authored": "fixtures/authored/boom.boom.d.ts",
|
|
63
|
+
"moduleId": "boom.boom",
|
|
64
|
+
"namespace": "boom",
|
|
65
|
+
"generated": "generated/boom.d.ts",
|
|
66
|
+
"apiDoc": "api-doc/boom.json",
|
|
67
|
+
"upstreamLua": ["fixtures/upstream-lua/boom/boom/boom.lua"]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"repo": "https://github.com/whiteboxdev/library-defold-persist",
|
|
71
|
+
"ref": "b37f61040740f232d86f68e2606f27b6f1bd15c4",
|
|
72
|
+
"license": "Zlib",
|
|
73
|
+
"authored": "fixtures/authored/persist.persist.d.ts",
|
|
74
|
+
"moduleId": "persist.persist",
|
|
75
|
+
"namespace": "persist",
|
|
76
|
+
"generated": "generated/persist.d.ts",
|
|
77
|
+
"apiDoc": "api-doc/persist.json",
|
|
78
|
+
"upstreamLua": ["fixtures/upstream-lua/library-defold-persist/persist/persist.lua"]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"repo": "https://github.com/britzl/defold-orthographic",
|
|
82
|
+
"ref": "3.6.3",
|
|
83
|
+
"license": "MIT",
|
|
84
|
+
"authored": "fixtures/authored/orthographic.camera.d.ts",
|
|
85
|
+
"moduleId": "orthographic.camera",
|
|
86
|
+
"namespace": "orthographic.camera",
|
|
87
|
+
"generated": "generated/orthographic.camera.d.ts",
|
|
88
|
+
"apiDoc": "api-doc/orthographic.camera.json",
|
|
89
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-orthographic/orthographic/camera.lua"]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"repo": "https://github.com/heroiclabs/nakama-defold",
|
|
93
|
+
"ref": "v3.4.0",
|
|
94
|
+
"license": "Apache-2.0",
|
|
95
|
+
"authored": "fixtures/authored/nakama.engine.defold.d.ts",
|
|
96
|
+
"moduleId": "nakama.engine.defold",
|
|
97
|
+
"namespace": "nakama.engine.defold",
|
|
98
|
+
"generated": "generated/nakama.engine.defold.d.ts",
|
|
99
|
+
"apiDoc": "api-doc/nakama.engine.defold.json",
|
|
100
|
+
"upstreamLua": ["fixtures/upstream-lua/nakama-defold/nakama/engine/defold.lua"]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"repo": "https://github.com/heroiclabs/nakama-defold",
|
|
104
|
+
"ref": "v3.4.0",
|
|
105
|
+
"license": "Apache-2.0",
|
|
106
|
+
"authored": "fixtures/authored/nakama.util.log.d.ts",
|
|
107
|
+
"moduleId": "nakama.util.log",
|
|
108
|
+
"namespace": "nakama.util.log",
|
|
109
|
+
"generated": "generated/nakama.util.log.d.ts",
|
|
110
|
+
"apiDoc": "api-doc/nakama.util.log.json",
|
|
111
|
+
"upstreamLua": ["fixtures/upstream-lua/nakama-defold/nakama/util/log.lua"]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"repo": "https://github.com/indiesoftby/defold-yagames",
|
|
115
|
+
"ref": "0.19.0",
|
|
116
|
+
"license": "MIT",
|
|
117
|
+
"authored": "fixtures/authored/yagames.yagames.d.ts",
|
|
118
|
+
"moduleId": "yagames.yagames",
|
|
119
|
+
"namespace": "yagames",
|
|
120
|
+
"generated": "generated/yagames.d.ts",
|
|
121
|
+
"apiDoc": "api-doc/yagames.json",
|
|
122
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-yagames/yagames/yagames.lua"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"repo": "https://github.com/VowSoftware/starly",
|
|
126
|
+
"ref": "85d1b2af8bf0618e7f297da41d03eb55d27e49b6",
|
|
127
|
+
"license": "Zlib",
|
|
128
|
+
"authored": "fixtures/authored/starly.starly.d.ts",
|
|
129
|
+
"moduleId": "starly.starly",
|
|
130
|
+
"namespace": "starly",
|
|
131
|
+
"generated": "generated/starly.d.ts",
|
|
132
|
+
"apiDoc": "api-doc/starly.json",
|
|
133
|
+
"parityVerdict": {
|
|
134
|
+
"reason": "unresolved-path",
|
|
135
|
+
"note": "VowSoftware/starly does not resolve at the pinned SHA 85d1b2af — the repository itself returns 404, so neither starly/starly.lua nor any other upstream path can be vendored at this ref."
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
140
|
+
"ref": "4.7.1",
|
|
141
|
+
"license": "MIT",
|
|
142
|
+
"authored": "fixtures/authored/in.accelerometer.d.ts",
|
|
143
|
+
"moduleId": "in.accelerometer",
|
|
144
|
+
"namespace": "in.accelerometer",
|
|
145
|
+
"generated": "generated/in.accelerometer.d.ts",
|
|
146
|
+
"apiDoc": "api-doc/in.accelerometer.json",
|
|
147
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/accelerometer.lua"]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
151
|
+
"ref": "4.7.1",
|
|
152
|
+
"license": "MIT",
|
|
153
|
+
"authored": "fixtures/authored/in.button.d.ts",
|
|
154
|
+
"moduleId": "in.button",
|
|
155
|
+
"namespace": "in.button",
|
|
156
|
+
"generated": "generated/in.button.d.ts",
|
|
157
|
+
"apiDoc": "api-doc/in.button.json",
|
|
158
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/button.lua"]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
162
|
+
"ref": "4.7.1",
|
|
163
|
+
"license": "MIT",
|
|
164
|
+
"authored": "fixtures/authored/in.cursor.d.ts",
|
|
165
|
+
"moduleId": "in.cursor",
|
|
166
|
+
"namespace": "in.cursor",
|
|
167
|
+
"generated": "generated/in.cursor.d.ts",
|
|
168
|
+
"apiDoc": "api-doc/in.cursor.json",
|
|
169
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/cursor.lua"]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
173
|
+
"ref": "4.7.1",
|
|
174
|
+
"license": "MIT",
|
|
175
|
+
"authored": "fixtures/authored/in.gesture.d.ts",
|
|
176
|
+
"moduleId": "in.gesture",
|
|
177
|
+
"namespace": "in.gesture",
|
|
178
|
+
"generated": "generated/in.gesture.d.ts",
|
|
179
|
+
"apiDoc": "api-doc/in.gesture.json",
|
|
180
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/gesture.lua"]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
184
|
+
"ref": "4.7.1",
|
|
185
|
+
"license": "MIT",
|
|
186
|
+
"authored": "fixtures/authored/in.keyboard.d.ts",
|
|
187
|
+
"moduleId": "in.keyboard",
|
|
188
|
+
"namespace": "in.keyboard",
|
|
189
|
+
"generated": "generated/in.keyboard.d.ts",
|
|
190
|
+
"apiDoc": "api-doc/in.keyboard.json",
|
|
191
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/keyboard.lua"]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
195
|
+
"ref": "4.7.1",
|
|
196
|
+
"license": "MIT",
|
|
197
|
+
"authored": "fixtures/authored/in.mapper.d.ts",
|
|
198
|
+
"moduleId": "in.mapper",
|
|
199
|
+
"namespace": "in.mapper",
|
|
200
|
+
"generated": "generated/in.mapper.d.ts",
|
|
201
|
+
"apiDoc": "api-doc/in.mapper.json",
|
|
202
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/mapper.lua"]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
206
|
+
"ref": "4.7.1",
|
|
207
|
+
"license": "MIT",
|
|
208
|
+
"authored": "fixtures/authored/in.onscreen.d.ts",
|
|
209
|
+
"moduleId": "in.onscreen",
|
|
210
|
+
"namespace": "in.onscreen",
|
|
211
|
+
"generated": "generated/in.onscreen.d.ts",
|
|
212
|
+
"apiDoc": "api-doc/in.onscreen.json",
|
|
213
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/onscreen.lua"]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
217
|
+
"ref": "4.7.1",
|
|
218
|
+
"license": "MIT",
|
|
219
|
+
"authored": "fixtures/authored/in.state.d.ts",
|
|
220
|
+
"moduleId": "in.state",
|
|
221
|
+
"namespace": "in.state",
|
|
222
|
+
"generated": "generated/in.state.d.ts",
|
|
223
|
+
"apiDoc": "api-doc/in.state.json",
|
|
224
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/state.lua"]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
228
|
+
"ref": "4.7.1",
|
|
229
|
+
"license": "MIT",
|
|
230
|
+
"authored": "fixtures/authored/in.textbox.d.ts",
|
|
231
|
+
"moduleId": "in.textbox",
|
|
232
|
+
"namespace": "in.textbox",
|
|
233
|
+
"generated": "generated/in.textbox.d.ts",
|
|
234
|
+
"apiDoc": "api-doc/in.textbox.json",
|
|
235
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/textbox.lua"]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
239
|
+
"ref": "4.7.1",
|
|
240
|
+
"license": "MIT",
|
|
241
|
+
"authored": "fixtures/authored/in.triggers.d.ts",
|
|
242
|
+
"moduleId": "in.triggers",
|
|
243
|
+
"namespace": "in.triggers",
|
|
244
|
+
"generated": "generated/in.triggers.d.ts",
|
|
245
|
+
"apiDoc": "api-doc/in.triggers.json",
|
|
246
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/triggers.lua"]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"repo": "https://github.com/britzl/monarch",
|
|
250
|
+
"ref": "6.0.2",
|
|
251
|
+
"license": "MIT",
|
|
252
|
+
"authored": "fixtures/authored/monarch.monarch.d.ts",
|
|
253
|
+
"moduleId": "monarch.monarch",
|
|
254
|
+
"namespace": "monarch.monarch",
|
|
255
|
+
"generated": "generated/monarch.monarch.d.ts",
|
|
256
|
+
"apiDoc": "api-doc/monarch.monarch.json",
|
|
257
|
+
"upstreamLua": ["fixtures/upstream-lua/monarch/monarch/monarch.lua"]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"repo": "https://github.com/britzl/monarch",
|
|
261
|
+
"ref": "6.0.2",
|
|
262
|
+
"license": "MIT",
|
|
263
|
+
"authored": "fixtures/authored/monarch.transitions.easings.d.ts",
|
|
264
|
+
"moduleId": "monarch.transitions.easings",
|
|
265
|
+
"namespace": "monarch.transitions.easings",
|
|
266
|
+
"generated": "generated/monarch.transitions.easings.d.ts",
|
|
267
|
+
"apiDoc": "api-doc/monarch.transitions.easings.json",
|
|
268
|
+
"upstreamLua": ["fixtures/upstream-lua/monarch/monarch/transitions/easings.lua"]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"repo": "https://github.com/britzl/monarch",
|
|
272
|
+
"ref": "6.0.2",
|
|
273
|
+
"license": "MIT",
|
|
274
|
+
"authored": "fixtures/authored/monarch.transitions.gui.d.ts",
|
|
275
|
+
"moduleId": "monarch.transitions.gui",
|
|
276
|
+
"namespace": "monarch.transitions.gui",
|
|
277
|
+
"generated": "generated/monarch.transitions.gui.d.ts",
|
|
278
|
+
"apiDoc": "api-doc/monarch.transitions.gui.json",
|
|
279
|
+
"upstreamLua": ["fixtures/upstream-lua/monarch/monarch/transitions/gui.lua"]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"repo": "https://github.com/britzl/defold-richtext",
|
|
283
|
+
"ref": "5.22.1",
|
|
284
|
+
"license": "MIT",
|
|
285
|
+
"authored": "fixtures/authored/richtext.color.d.ts",
|
|
286
|
+
"moduleId": "richtext.color",
|
|
287
|
+
"namespace": "richtext.color",
|
|
288
|
+
"generated": "generated/richtext.color.d.ts",
|
|
289
|
+
"apiDoc": "api-doc/richtext.color.json",
|
|
290
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-richtext/richtext/color.lua"]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"repo": "https://github.com/britzl/defold-richtext",
|
|
294
|
+
"ref": "5.22.1",
|
|
295
|
+
"license": "MIT",
|
|
296
|
+
"authored": "fixtures/authored/richtext.richtext.d.ts",
|
|
297
|
+
"moduleId": "richtext.richtext",
|
|
298
|
+
"namespace": "richtext.richtext",
|
|
299
|
+
"generated": "generated/richtext.richtext.d.ts",
|
|
300
|
+
"apiDoc": "api-doc/richtext.richtext.json",
|
|
301
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-richtext/richtext/richtext.lua"]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"repo": "https://github.com/britzl/defold-richtext",
|
|
305
|
+
"ref": "5.22.1",
|
|
306
|
+
"license": "MIT",
|
|
307
|
+
"authored": "fixtures/authored/richtext.tags.d.ts",
|
|
308
|
+
"moduleId": "richtext.tags",
|
|
309
|
+
"namespace": "richtext.tags",
|
|
310
|
+
"generated": "generated/richtext.tags.d.ts",
|
|
311
|
+
"apiDoc": "api-doc/richtext.tags.json",
|
|
312
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-richtext/richtext/tags.lua"]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"repo": "https://github.com/britzl/defold-metrics",
|
|
316
|
+
"ref": "1.2.1",
|
|
317
|
+
"license": "MIT",
|
|
318
|
+
"authored": "fixtures/authored/metrics.fps.d.ts",
|
|
319
|
+
"moduleId": "metrics.fps",
|
|
320
|
+
"namespace": "metrics.fps",
|
|
321
|
+
"generated": "generated/metrics.fps.d.ts",
|
|
322
|
+
"apiDoc": "api-doc/metrics.fps.json",
|
|
323
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-metrics/metrics/fps.lua"]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"repo": "https://github.com/britzl/defold-metrics",
|
|
327
|
+
"ref": "1.2.1",
|
|
328
|
+
"license": "MIT",
|
|
329
|
+
"authored": "fixtures/authored/metrics.mem.d.ts",
|
|
330
|
+
"moduleId": "metrics.mem",
|
|
331
|
+
"namespace": "metrics.mem",
|
|
332
|
+
"generated": "generated/metrics.mem.d.ts",
|
|
333
|
+
"apiDoc": "api-doc/metrics.mem.json",
|
|
334
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-metrics/metrics/mem.lua"]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"repo": "https://github.com/britzl/gooey",
|
|
338
|
+
"ref": "10.5.3",
|
|
339
|
+
"license": "MIT",
|
|
340
|
+
"authored": "fixtures/authored/gooey.gooey.d.ts",
|
|
341
|
+
"moduleId": "gooey.gooey",
|
|
342
|
+
"namespace": "gooey",
|
|
343
|
+
"generated": "generated/gooey.d.ts",
|
|
344
|
+
"apiDoc": "api-doc/gooey.json",
|
|
345
|
+
"upstreamLua": ["fixtures/upstream-lua/gooey/gooey/gooey.lua"]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"repo": "https://github.com/jbp4444/bzAnim",
|
|
349
|
+
"ref": "v.1.2",
|
|
350
|
+
"license": "Apache-2.0",
|
|
351
|
+
"authored": "fixtures/authored/bzAnim.bzLibrary.d.ts",
|
|
352
|
+
"moduleId": "bzAnim.bzLibrary",
|
|
353
|
+
"namespace": "bzAnim",
|
|
354
|
+
"generated": "generated/bzAnim.d.ts",
|
|
355
|
+
"apiDoc": "api-doc/bzAnim.json",
|
|
356
|
+
"upstreamLua": ["fixtures/upstream-lua/bzAnim/bzAnim/bzLibrary.lua"]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"repo": "https://github.com/britzl/platypus",
|
|
360
|
+
"ref": "4.3.1",
|
|
361
|
+
"license": "MIT",
|
|
362
|
+
"authored": "fixtures/authored/platypus.platypus.d.ts",
|
|
363
|
+
"moduleId": "platypus.platypus",
|
|
364
|
+
"namespace": "platypus",
|
|
365
|
+
"generated": "generated/platypus.d.ts",
|
|
366
|
+
"apiDoc": "api-doc/platypus.json",
|
|
367
|
+
"upstreamLua": ["fixtures/upstream-lua/platypus/platypus/platypus.lua"]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"repo": "https://github.com/8bitskull/dicebag",
|
|
371
|
+
"ref": "0.3",
|
|
372
|
+
"license": "CC0-1.0",
|
|
373
|
+
"authored": "fixtures/authored/dicebag.dicebag.d.ts",
|
|
374
|
+
"moduleId": "dicebag.dicebag",
|
|
375
|
+
"namespace": "dicebag",
|
|
376
|
+
"generated": "generated/dicebag.d.ts",
|
|
377
|
+
"apiDoc": "api-doc/dicebag.json",
|
|
378
|
+
"upstreamLua": ["fixtures/upstream-lua/dicebag/dicebag/dicebag.lua"]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"repo": "https://github.com/whiteboxdev/library-defold-rendy",
|
|
382
|
+
"ref": "b72ee2419f2cd5e1a2281e1eed5cc4081b5cbcc3",
|
|
383
|
+
"license": "Zlib",
|
|
384
|
+
"authored": "fixtures/authored/rendy.rendy.d.ts",
|
|
385
|
+
"moduleId": "rendy.rendy",
|
|
386
|
+
"namespace": "rendy",
|
|
387
|
+
"generated": "generated/rendy.d.ts",
|
|
388
|
+
"apiDoc": "api-doc/rendy.json",
|
|
389
|
+
"upstreamLua": ["fixtures/upstream-lua/library-defold-rendy/rendy/rendy.lua"]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"repo": "https://github.com/heroiclabs/nakama-defold",
|
|
393
|
+
"ref": "v3.4.0",
|
|
394
|
+
"license": "Apache-2.0",
|
|
395
|
+
"authored": "fixtures/authored/nakama.nakama.d.ts",
|
|
396
|
+
"moduleId": "nakama.nakama",
|
|
397
|
+
"namespace": "nakama",
|
|
398
|
+
"generated": "generated/nakama.d.ts",
|
|
399
|
+
"apiDoc": "api-doc/nakama.json",
|
|
400
|
+
"upstreamLua": ["fixtures/upstream-lua/nakama-defold/nakama/nakama.lua"]
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
}
|
|
@@ -1542,6 +1542,20 @@ declare function cam_rot(): number;
|
|
|
1542
1542
|
declare function cam_zoom(zoom: number): void;
|
|
1543
1543
|
declare function cam_zoom(): number;
|
|
1544
1544
|
|
|
1545
|
+
/**
|
|
1546
|
+
* Transform a point from world position to screen position.
|
|
1547
|
+
* @param p Point
|
|
1548
|
+
* @returns Screen position
|
|
1549
|
+
*/
|
|
1550
|
+
declare function to_screen(p: Vec2): Vec2;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Transform a point from screen position to world position.
|
|
1554
|
+
* @param p Point
|
|
1555
|
+
* @returns World position
|
|
1556
|
+
*/
|
|
1557
|
+
declare function to_world(p: Vec2): Vec2;
|
|
1558
|
+
|
|
1545
1559
|
/**
|
|
1546
1560
|
* Get gravity.
|
|
1547
1561
|
* @returns The gravity in pixels per seconds
|
package/generated/bridge.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ declare module 'bridge.bridge' {
|
|
|
235
235
|
/**
|
|
236
236
|
* Identify the platform on which the game is currently running to customize features and settings accordingly.
|
|
237
237
|
*/
|
|
238
|
-
function id():
|
|
238
|
+
function id(): string | undefined;
|
|
239
239
|
/**
|
|
240
240
|
* Check if the audio is enabled on the platform.
|
|
241
241
|
*/
|
|
@@ -261,7 +261,7 @@ declare module 'bridge.bridge' {
|
|
|
261
261
|
/**
|
|
262
262
|
* Embed auxiliary information into the game URL to pass additional data or settings when launching the game.
|
|
263
263
|
*/
|
|
264
|
-
function payload():
|
|
264
|
+
function payload(): string | undefined;
|
|
265
265
|
/**
|
|
266
266
|
* Send a custom message with an arbitrary id to the platform.
|
|
267
267
|
*
|
|
@@ -279,7 +279,7 @@ declare module 'bridge.bridge' {
|
|
|
279
279
|
/**
|
|
280
280
|
* Retrieve the top-level domain of the platform to handle domain-specific configurations and behavior.
|
|
281
281
|
*/
|
|
282
|
-
function tld():
|
|
282
|
+
function tld(): string | undefined;
|
|
283
283
|
}
|
|
284
284
|
namespace player {
|
|
285
285
|
/**
|
|
@@ -296,7 +296,7 @@ declare module 'bridge.bridge' {
|
|
|
296
296
|
/**
|
|
297
297
|
* Get the player’s unique ID on the platform to manage user-specific data and settings. Use this ID to track player progress, achievements, and purchases.
|
|
298
298
|
*/
|
|
299
|
-
function id():
|
|
299
|
+
function id(): string | undefined;
|
|
300
300
|
/**
|
|
301
301
|
* Check if the platform supports player authorization to enable features that require user authentication, such as saving game progress or accessing social features.
|
|
302
302
|
*/
|
|
@@ -312,7 +312,7 @@ declare module 'bridge.bridge' {
|
|
|
312
312
|
/**
|
|
313
313
|
* Retrieve the player's name to personalize the game experience. Display the name in leaderboards, friend lists, or when sending notifications and messages.
|
|
314
314
|
*/
|
|
315
|
-
function name():
|
|
315
|
+
function name(): string | undefined;
|
|
316
316
|
/**
|
|
317
317
|
* Get the count of player avatars available. Use this to manage and display user profile images effectively, such as showing the avatar in multiplayer lobbies or profile screens.
|
|
318
318
|
*/
|
|
@@ -90,4 +90,10 @@ declare module "bzAnim.bzLibrary" {
|
|
|
90
90
|
export function isReady(): boolean;
|
|
91
91
|
|
|
92
92
|
export function setDebugLevel(level: number): void;
|
|
93
|
+
|
|
94
|
+
export function setMaxPoints(num: number): void;
|
|
95
|
+
|
|
96
|
+
export function registerController(obj: Hash | string): void;
|
|
97
|
+
|
|
98
|
+
export function unregisterController(obj: Hash | string): void;
|
|
93
99
|
}
|
package/generated/decore.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ declare module 'decore.decore' {
|
|
|
101
101
|
processingSystem: (table: system | undefined) => system;
|
|
102
102
|
sortedSystem: (table: system | undefined) => system;
|
|
103
103
|
sortedProcessingSystem: (table: system | undefined) => system;
|
|
104
|
-
world: (...args: unknown[]) => LuaMultiReturn<[world, unknown]>;
|
|
104
|
+
world: (...args: unknown[]) => LuaMultiReturn<[world, ...unknown[]]>;
|
|
105
105
|
addEntity: (world: world, entity: entity) => entity;
|
|
106
106
|
addSystem: (world: world, system: system) => system;
|
|
107
107
|
add: (world: world, ...args: unknown[]) => unknown;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** @noSelfInFile **/
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @see {@link https://github.com/britzl/defcon|Github Source}
|
|
5
|
+
* @noResolution
|
|
6
|
+
*/
|
|
7
|
+
declare module 'defcon.console' {
|
|
8
|
+
/** @noSelf */
|
|
9
|
+
export interface CommandCallback {
|
|
10
|
+
(args: Array<string>, stream: unknown): string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The engine's own `print`, captured at load. `start()` replaces the global with a
|
|
15
|
+
* logging wrapper that calls this, and `stop()` restores the global from it.
|
|
16
|
+
*/
|
|
17
|
+
export const print: (...args: unknown[]) => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The engine's own `pprint`, captured at load. `start()` replaces the global with a
|
|
21
|
+
* logging wrapper that calls this, and `stop()` restores the global from it.
|
|
22
|
+
*/
|
|
23
|
+
export const pprint: (...args: unknown[]) => void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The `defnet` http_server the console listens on. A router-only stand-in until
|
|
27
|
+
* `start()` creates the real one; opaque here, `defnet` not being vendored by this
|
|
28
|
+
* target.
|
|
29
|
+
*/
|
|
30
|
+
export const server: unknown;
|
|
31
|
+
|
|
32
|
+
export function start(port: number): void;
|
|
33
|
+
|
|
34
|
+
export function stop(): void;
|
|
35
|
+
|
|
36
|
+
export function update(): void;
|
|
37
|
+
|
|
38
|
+
export function register_module(module: unknown, name?: string): void;
|
|
39
|
+
|
|
40
|
+
export function register_command(command: string, description: string, callback: CommandCallback): void;
|
|
41
|
+
|
|
42
|
+
export function set_environment(env: unknown): void;
|
|
43
|
+
}
|
|
@@ -179,11 +179,12 @@ declare module "defmath.defmath" {
|
|
|
179
179
|
/**
|
|
180
180
|
* Used to find a point in a triangle
|
|
181
181
|
* x0, y0 are the points that are being checked against the rest to see if it's inside
|
|
182
|
+
* arr must be 6 in length: top x/y, bottom right x/y, bottom left x/y
|
|
182
183
|
*/
|
|
183
|
-
export function in_triangle(x0: number, y0: number,
|
|
184
|
+
export function in_triangle(x0: number, y0: number, arr: [number, number, number, number, number, number]): boolean;
|
|
184
185
|
|
|
185
186
|
/**
|
|
186
|
-
*
|
|
187
|
+
* box intersection of 2 square
|
|
187
188
|
*/
|
|
188
189
|
export function box_intersect(ax: number, ay: number, awidth: number, aheight: number, bx: number, by: number, bwidth: number, bheight: number): boolean;
|
|
189
190
|
|