@defold-typescript/library-types 0.23.0 → 0.25.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/NOTICE +2 -3
- package/api-doc/boom.json +3872 -0
- package/api-doc/bridge.json +10 -5
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/checkpoint.json +127 -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 +745 -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.session.json +315 -0
- package/api-doc/nakama.socket.json +3356 -0
- 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/shutter.json +551 -0
- package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
- package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
- package/authored-targets.json +433 -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/checkpoint.d.ts +62 -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.session.d.ts +95 -0
- package/generated/nakama.socket.d.ts +706 -0
- 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/proto.d.ts +4 -4
- 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/shutter.d.ts +183 -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 +214 -42
- 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/api-doc/starly.starly.json +0 -488
- 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/starly.starly.d.ts +0 -148
- /package/generated/{deftest.deftest.d.ts → deftest.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,433 @@
|
|
|
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/heroiclabs/nakama-defold",
|
|
115
|
+
"ref": "v3.4.0",
|
|
116
|
+
"license": "Apache-2.0",
|
|
117
|
+
"authored": "fixtures/authored/nakama.session.d.ts",
|
|
118
|
+
"moduleId": "nakama.session",
|
|
119
|
+
"namespace": "nakama.session",
|
|
120
|
+
"generated": "generated/nakama.session.d.ts",
|
|
121
|
+
"apiDoc": "api-doc/nakama.session.json",
|
|
122
|
+
"upstreamLua": ["fixtures/upstream-lua/nakama-defold/nakama/session.lua"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"repo": "https://github.com/heroiclabs/nakama-defold",
|
|
126
|
+
"ref": "v3.4.0",
|
|
127
|
+
"license": "Apache-2.0",
|
|
128
|
+
"authored": "fixtures/authored/nakama.socket.d.ts",
|
|
129
|
+
"moduleId": "nakama.socket",
|
|
130
|
+
"namespace": "nakama.socket",
|
|
131
|
+
"generated": "generated/nakama.socket.d.ts",
|
|
132
|
+
"apiDoc": "api-doc/nakama.socket.json",
|
|
133
|
+
"upstreamLua": ["fixtures/upstream-lua/nakama-defold/nakama/socket.lua"]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"repo": "https://github.com/indiesoftby/defold-yagames",
|
|
137
|
+
"ref": "0.19.0",
|
|
138
|
+
"license": "MIT",
|
|
139
|
+
"authored": "fixtures/authored/yagames.yagames.d.ts",
|
|
140
|
+
"moduleId": "yagames.yagames",
|
|
141
|
+
"namespace": "yagames",
|
|
142
|
+
"generated": "generated/yagames.d.ts",
|
|
143
|
+
"apiDoc": "api-doc/yagames.json",
|
|
144
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-yagames/yagames/yagames.lua"]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
148
|
+
"ref": "4.7.1",
|
|
149
|
+
"license": "MIT",
|
|
150
|
+
"authored": "fixtures/authored/in.accelerometer.d.ts",
|
|
151
|
+
"moduleId": "in.accelerometer",
|
|
152
|
+
"namespace": "in.accelerometer",
|
|
153
|
+
"generated": "generated/in.accelerometer.d.ts",
|
|
154
|
+
"apiDoc": "api-doc/in.accelerometer.json",
|
|
155
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/accelerometer.lua"]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
159
|
+
"ref": "4.7.1",
|
|
160
|
+
"license": "MIT",
|
|
161
|
+
"authored": "fixtures/authored/in.button.d.ts",
|
|
162
|
+
"moduleId": "in.button",
|
|
163
|
+
"namespace": "in.button",
|
|
164
|
+
"generated": "generated/in.button.d.ts",
|
|
165
|
+
"apiDoc": "api-doc/in.button.json",
|
|
166
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/button.lua"]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
170
|
+
"ref": "4.7.1",
|
|
171
|
+
"license": "MIT",
|
|
172
|
+
"authored": "fixtures/authored/in.cursor.d.ts",
|
|
173
|
+
"moduleId": "in.cursor",
|
|
174
|
+
"namespace": "in.cursor",
|
|
175
|
+
"generated": "generated/in.cursor.d.ts",
|
|
176
|
+
"apiDoc": "api-doc/in.cursor.json",
|
|
177
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/cursor.lua"]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
181
|
+
"ref": "4.7.1",
|
|
182
|
+
"license": "MIT",
|
|
183
|
+
"authored": "fixtures/authored/in.gesture.d.ts",
|
|
184
|
+
"moduleId": "in.gesture",
|
|
185
|
+
"namespace": "in.gesture",
|
|
186
|
+
"generated": "generated/in.gesture.d.ts",
|
|
187
|
+
"apiDoc": "api-doc/in.gesture.json",
|
|
188
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/gesture.lua"]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
192
|
+
"ref": "4.7.1",
|
|
193
|
+
"license": "MIT",
|
|
194
|
+
"authored": "fixtures/authored/in.keyboard.d.ts",
|
|
195
|
+
"moduleId": "in.keyboard",
|
|
196
|
+
"namespace": "in.keyboard",
|
|
197
|
+
"generated": "generated/in.keyboard.d.ts",
|
|
198
|
+
"apiDoc": "api-doc/in.keyboard.json",
|
|
199
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/keyboard.lua"]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
203
|
+
"ref": "4.7.1",
|
|
204
|
+
"license": "MIT",
|
|
205
|
+
"authored": "fixtures/authored/in.mapper.d.ts",
|
|
206
|
+
"moduleId": "in.mapper",
|
|
207
|
+
"namespace": "in.mapper",
|
|
208
|
+
"generated": "generated/in.mapper.d.ts",
|
|
209
|
+
"apiDoc": "api-doc/in.mapper.json",
|
|
210
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/mapper.lua"]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
214
|
+
"ref": "4.7.1",
|
|
215
|
+
"license": "MIT",
|
|
216
|
+
"authored": "fixtures/authored/in.onscreen.d.ts",
|
|
217
|
+
"moduleId": "in.onscreen",
|
|
218
|
+
"namespace": "in.onscreen",
|
|
219
|
+
"generated": "generated/in.onscreen.d.ts",
|
|
220
|
+
"apiDoc": "api-doc/in.onscreen.json",
|
|
221
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/onscreen.lua"]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
225
|
+
"ref": "4.7.1",
|
|
226
|
+
"license": "MIT",
|
|
227
|
+
"authored": "fixtures/authored/in.state.d.ts",
|
|
228
|
+
"moduleId": "in.state",
|
|
229
|
+
"namespace": "in.state",
|
|
230
|
+
"generated": "generated/in.state.d.ts",
|
|
231
|
+
"apiDoc": "api-doc/in.state.json",
|
|
232
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/state.lua"]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
236
|
+
"ref": "4.7.1",
|
|
237
|
+
"license": "MIT",
|
|
238
|
+
"authored": "fixtures/authored/in.textbox.d.ts",
|
|
239
|
+
"moduleId": "in.textbox",
|
|
240
|
+
"namespace": "in.textbox",
|
|
241
|
+
"generated": "generated/in.textbox.d.ts",
|
|
242
|
+
"apiDoc": "api-doc/in.textbox.json",
|
|
243
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/textbox.lua"]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"repo": "https://github.com/britzl/defold-input",
|
|
247
|
+
"ref": "4.7.1",
|
|
248
|
+
"license": "MIT",
|
|
249
|
+
"authored": "fixtures/authored/in.triggers.d.ts",
|
|
250
|
+
"moduleId": "in.triggers",
|
|
251
|
+
"namespace": "in.triggers",
|
|
252
|
+
"generated": "generated/in.triggers.d.ts",
|
|
253
|
+
"apiDoc": "api-doc/in.triggers.json",
|
|
254
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-input/in/triggers.lua"]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"repo": "https://github.com/britzl/monarch",
|
|
258
|
+
"ref": "6.0.2",
|
|
259
|
+
"license": "MIT",
|
|
260
|
+
"authored": "fixtures/authored/monarch.monarch.d.ts",
|
|
261
|
+
"moduleId": "monarch.monarch",
|
|
262
|
+
"namespace": "monarch.monarch",
|
|
263
|
+
"generated": "generated/monarch.monarch.d.ts",
|
|
264
|
+
"apiDoc": "api-doc/monarch.monarch.json",
|
|
265
|
+
"upstreamLua": ["fixtures/upstream-lua/monarch/monarch/monarch.lua"]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"repo": "https://github.com/britzl/monarch",
|
|
269
|
+
"ref": "6.0.2",
|
|
270
|
+
"license": "MIT",
|
|
271
|
+
"authored": "fixtures/authored/monarch.transitions.easings.d.ts",
|
|
272
|
+
"moduleId": "monarch.transitions.easings",
|
|
273
|
+
"namespace": "monarch.transitions.easings",
|
|
274
|
+
"generated": "generated/monarch.transitions.easings.d.ts",
|
|
275
|
+
"apiDoc": "api-doc/monarch.transitions.easings.json",
|
|
276
|
+
"upstreamLua": ["fixtures/upstream-lua/monarch/monarch/transitions/easings.lua"]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"repo": "https://github.com/britzl/monarch",
|
|
280
|
+
"ref": "6.0.2",
|
|
281
|
+
"license": "MIT",
|
|
282
|
+
"authored": "fixtures/authored/monarch.transitions.gui.d.ts",
|
|
283
|
+
"moduleId": "monarch.transitions.gui",
|
|
284
|
+
"namespace": "monarch.transitions.gui",
|
|
285
|
+
"generated": "generated/monarch.transitions.gui.d.ts",
|
|
286
|
+
"apiDoc": "api-doc/monarch.transitions.gui.json",
|
|
287
|
+
"upstreamLua": ["fixtures/upstream-lua/monarch/monarch/transitions/gui.lua"]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"repo": "https://github.com/britzl/defold-richtext",
|
|
291
|
+
"ref": "5.22.1",
|
|
292
|
+
"license": "MIT",
|
|
293
|
+
"authored": "fixtures/authored/richtext.color.d.ts",
|
|
294
|
+
"moduleId": "richtext.color",
|
|
295
|
+
"namespace": "richtext.color",
|
|
296
|
+
"generated": "generated/richtext.color.d.ts",
|
|
297
|
+
"apiDoc": "api-doc/richtext.color.json",
|
|
298
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-richtext/richtext/color.lua"]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"repo": "https://github.com/britzl/defold-richtext",
|
|
302
|
+
"ref": "5.22.1",
|
|
303
|
+
"license": "MIT",
|
|
304
|
+
"authored": "fixtures/authored/richtext.richtext.d.ts",
|
|
305
|
+
"moduleId": "richtext.richtext",
|
|
306
|
+
"namespace": "richtext.richtext",
|
|
307
|
+
"generated": "generated/richtext.richtext.d.ts",
|
|
308
|
+
"apiDoc": "api-doc/richtext.richtext.json",
|
|
309
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-richtext/richtext/richtext.lua"]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"repo": "https://github.com/britzl/defold-richtext",
|
|
313
|
+
"ref": "5.22.1",
|
|
314
|
+
"license": "MIT",
|
|
315
|
+
"authored": "fixtures/authored/richtext.tags.d.ts",
|
|
316
|
+
"moduleId": "richtext.tags",
|
|
317
|
+
"namespace": "richtext.tags",
|
|
318
|
+
"generated": "generated/richtext.tags.d.ts",
|
|
319
|
+
"apiDoc": "api-doc/richtext.tags.json",
|
|
320
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-richtext/richtext/tags.lua"]
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"repo": "https://github.com/britzl/defold-metrics",
|
|
324
|
+
"ref": "1.2.1",
|
|
325
|
+
"license": "MIT",
|
|
326
|
+
"authored": "fixtures/authored/metrics.fps.d.ts",
|
|
327
|
+
"moduleId": "metrics.fps",
|
|
328
|
+
"namespace": "metrics.fps",
|
|
329
|
+
"generated": "generated/metrics.fps.d.ts",
|
|
330
|
+
"apiDoc": "api-doc/metrics.fps.json",
|
|
331
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-metrics/metrics/fps.lua"]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"repo": "https://github.com/britzl/defold-metrics",
|
|
335
|
+
"ref": "1.2.1",
|
|
336
|
+
"license": "MIT",
|
|
337
|
+
"authored": "fixtures/authored/metrics.mem.d.ts",
|
|
338
|
+
"moduleId": "metrics.mem",
|
|
339
|
+
"namespace": "metrics.mem",
|
|
340
|
+
"generated": "generated/metrics.mem.d.ts",
|
|
341
|
+
"apiDoc": "api-doc/metrics.mem.json",
|
|
342
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-metrics/metrics/mem.lua"]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"repo": "https://github.com/britzl/gooey",
|
|
346
|
+
"ref": "10.5.3",
|
|
347
|
+
"license": "MIT",
|
|
348
|
+
"authored": "fixtures/authored/gooey.gooey.d.ts",
|
|
349
|
+
"moduleId": "gooey.gooey",
|
|
350
|
+
"namespace": "gooey",
|
|
351
|
+
"generated": "generated/gooey.d.ts",
|
|
352
|
+
"apiDoc": "api-doc/gooey.json",
|
|
353
|
+
"upstreamLua": ["fixtures/upstream-lua/gooey/gooey/gooey.lua"]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"repo": "https://github.com/jbp4444/bzAnim",
|
|
357
|
+
"ref": "v.1.2",
|
|
358
|
+
"license": "Apache-2.0",
|
|
359
|
+
"authored": "fixtures/authored/bzAnim.bzLibrary.d.ts",
|
|
360
|
+
"moduleId": "bzAnim.bzLibrary",
|
|
361
|
+
"namespace": "bzAnim",
|
|
362
|
+
"generated": "generated/bzAnim.d.ts",
|
|
363
|
+
"apiDoc": "api-doc/bzAnim.json",
|
|
364
|
+
"upstreamLua": ["fixtures/upstream-lua/bzAnim/bzAnim/bzLibrary.lua"]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"repo": "https://github.com/britzl/platypus",
|
|
368
|
+
"ref": "4.3.1",
|
|
369
|
+
"license": "MIT",
|
|
370
|
+
"authored": "fixtures/authored/platypus.platypus.d.ts",
|
|
371
|
+
"moduleId": "platypus.platypus",
|
|
372
|
+
"namespace": "platypus",
|
|
373
|
+
"generated": "generated/platypus.d.ts",
|
|
374
|
+
"apiDoc": "api-doc/platypus.json",
|
|
375
|
+
"upstreamLua": ["fixtures/upstream-lua/platypus/platypus/platypus.lua"]
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"repo": "https://github.com/8bitskull/dicebag",
|
|
379
|
+
"ref": "0.3",
|
|
380
|
+
"license": "CC0-1.0",
|
|
381
|
+
"authored": "fixtures/authored/dicebag.dicebag.d.ts",
|
|
382
|
+
"moduleId": "dicebag.dicebag",
|
|
383
|
+
"namespace": "dicebag",
|
|
384
|
+
"generated": "generated/dicebag.d.ts",
|
|
385
|
+
"apiDoc": "api-doc/dicebag.json",
|
|
386
|
+
"upstreamLua": ["fixtures/upstream-lua/dicebag/dicebag/dicebag.lua"]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"repo": "https://github.com/whiteboxdev/library-defold-rendy",
|
|
390
|
+
"ref": "b72ee2419f2cd5e1a2281e1eed5cc4081b5cbcc3",
|
|
391
|
+
"license": "Zlib",
|
|
392
|
+
"authored": "fixtures/authored/rendy.rendy.d.ts",
|
|
393
|
+
"moduleId": "rendy.rendy",
|
|
394
|
+
"namespace": "rendy",
|
|
395
|
+
"generated": "generated/rendy.d.ts",
|
|
396
|
+
"apiDoc": "api-doc/rendy.json",
|
|
397
|
+
"upstreamLua": ["fixtures/upstream-lua/library-defold-rendy/rendy/rendy.lua"]
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"repo": "https://github.com/heroiclabs/nakama-defold",
|
|
401
|
+
"ref": "v3.4.0",
|
|
402
|
+
"license": "Apache-2.0",
|
|
403
|
+
"authored": "fixtures/authored/nakama.nakama.d.ts",
|
|
404
|
+
"moduleId": "nakama.nakama",
|
|
405
|
+
"namespace": "nakama",
|
|
406
|
+
"generated": "generated/nakama.d.ts",
|
|
407
|
+
"apiDoc": "api-doc/nakama.json",
|
|
408
|
+
"upstreamLua": ["fixtures/upstream-lua/nakama-defold/nakama/nakama.lua"]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"repo": "https://github.com/Klaleus/defold-shutter",
|
|
412
|
+
"ref": "2ed27b50cda551650b01b80c1ccb5dd3f4e161fc",
|
|
413
|
+
"license": "Zlib",
|
|
414
|
+
"authored": "fixtures/authored/shutter.shutter.d.ts",
|
|
415
|
+
"moduleId": "shutter.shutter",
|
|
416
|
+
"namespace": "shutter",
|
|
417
|
+
"generated": "generated/shutter.d.ts",
|
|
418
|
+
"apiDoc": "api-doc/shutter.json",
|
|
419
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-shutter/shutter/shutter.lua"]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"repo": "https://github.com/Klaleus/defold-checkpoint",
|
|
423
|
+
"ref": "e4268ffba8f4f968f3c27a1a066ac9660bef3a73",
|
|
424
|
+
"license": "Zlib",
|
|
425
|
+
"authored": "fixtures/authored/checkpoint.checkpoint.d.ts",
|
|
426
|
+
"moduleId": "checkpoint.checkpoint",
|
|
427
|
+
"namespace": "checkpoint",
|
|
428
|
+
"generated": "generated/checkpoint.d.ts",
|
|
429
|
+
"apiDoc": "api-doc/checkpoint.json",
|
|
430
|
+
"upstreamLua": ["fixtures/upstream-lua/defold-checkpoint/checkpoint/checkpoint.lua"]
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** @noSelfInFile **/
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @see {@link https://github.com/Klaleus/defold-checkpoint|Github Source}
|
|
5
|
+
* @noResolution
|
|
6
|
+
* @example `import * as checkpoint from 'checkpoint.checkpoint'`
|
|
7
|
+
*/
|
|
8
|
+
declare module 'checkpoint.checkpoint' {
|
|
9
|
+
/**
|
|
10
|
+
* The `project.title` from game.project, read once when the module loads. It is
|
|
11
|
+
* the name the save directory is derived from.
|
|
12
|
+
*/
|
|
13
|
+
const project_title: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The absolute path of the project's save directory, resolved once when the
|
|
17
|
+
* module loads. Every path the other members take is relative to it, and `list`
|
|
18
|
+
* returns paths relative to it. Ends with a separator, e.g.
|
|
19
|
+
* `/home/klaleus/.local/share/defold-checkpoint/`.
|
|
20
|
+
*/
|
|
21
|
+
const project_save_path: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Loads a saved file. A path ending in `.json` is read as text and decoded with
|
|
25
|
+
* `json.decode`; anything else is loaded with `sys.load`. On success the loaded
|
|
26
|
+
* value is returned alone, so the error slot is absent; on any failure — the file
|
|
27
|
+
* missing, unreadable, or holding invalid content — the first value is `false` and
|
|
28
|
+
* the second is the error string. Name the saved shape through the type parameter
|
|
29
|
+
* to avoid casting at the call site.
|
|
30
|
+
* @param path Path relative to `project_save_path`.
|
|
31
|
+
* @returns The loaded value, or `false` and the error that stopped it.
|
|
32
|
+
*/
|
|
33
|
+
function read<T = unknown>(path: string): LuaMultiReturn<[T | false, string | undefined]>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Saves a value, creating any missing directories along the path first. A path
|
|
37
|
+
* ending in `.json` is encoded with `json.encode` and written as text and flushed
|
|
38
|
+
* immediately; anything else is written with `sys.save`. Creating the directories
|
|
39
|
+
* goes through `lfs`, so the project needs `britzl/defold-lfs` as a dependency;
|
|
40
|
+
* this corpus does not type it.
|
|
41
|
+
* @param path Path relative to `project_save_path`.
|
|
42
|
+
* @param data The value to save.
|
|
43
|
+
* @returns `true`, or `false` and the error that stopped it.
|
|
44
|
+
*/
|
|
45
|
+
function write(path: string, data: unknown): LuaMultiReturn<[boolean, string | undefined]>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether a saved file exists. Returns a real boolean rather than the underlying
|
|
49
|
+
* file attributes, so it reads directly as a condition. Goes through `lfs`, so the
|
|
50
|
+
* project needs `britzl/defold-lfs` as a dependency.
|
|
51
|
+
* @param path Path relative to `project_save_path`.
|
|
52
|
+
*/
|
|
53
|
+
function exists(path: string): boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Every saved file, found by walking the save directory breadth-first. Directories
|
|
57
|
+
* are descended into rather than listed. Goes through `lfs`, so the project needs
|
|
58
|
+
* `britzl/defold-lfs` as a dependency.
|
|
59
|
+
* @returns The file paths, relative to `project_save_path`.
|
|
60
|
+
*/
|
|
61
|
+
function list(): string[];
|
|
62
|
+
}
|
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;
|