@defold-typescript/library-types 0.22.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.bridge.json → bridge.json} +754 -844
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/decore.json +23 -23
- 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 +249 -1846
- package/api-doc/event.json +1074 -0
- package/api-doc/gooey.json +2050 -0
- package/api-doc/immutable.json +65 -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 +528 -0
- package/api-doc/{event.event.json → log.json} +96 -101
- 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 +647 -0
- 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/proto.json +995 -0
- 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 +714 -263
- package/api-doc/saver.storage.json +283 -52
- package/api-doc/squid.json +846 -0
- package/api-doc/{starly.starly.json → starly.json} +1 -1
- package/api-doc/tweener.json +277 -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 +403 -0
- package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
- package/generated/bridge.d.ts +468 -0
- package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
- package/generated/decore.d.ts +37 -37
- 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 +198 -502
- package/generated/event.d.ts +318 -0
- package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
- package/generated/immutable.d.ts +13 -0
- package/generated/in.onscreen.d.ts +5 -0
- package/generated/in.textbox.d.ts +4 -0
- package/generated/lang.d.ts +101 -0
- package/generated/log.d.ts +36 -0
- 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 +121 -0
- 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 +146 -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 +289 -42
- package/generated/saver.storage.d.ts +79 -14
- package/generated/squid.d.ts +127 -0
- package/generated/tweener.d.ts +42 -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 -227
- package/library-targets.json +1 -284
- package/luals-targets.json +168 -1
- package/openapi-targets.json +17 -0
- package/package.json +9 -88
- package/script-api-targets.json +15 -0
- package/scripts/__snapshots__/parse-luals.test.ts.snap +504 -85
- package/scripts/apply-luals-overrides.ts +95 -0
- package/scripts/authored-parity.ts +718 -0
- package/scripts/emit-library-dts.ts +177 -19
- 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 +69 -19
- package/scripts/luals-fidelity.ts +22 -10
- package/scripts/map-luals-types.ts +86 -22
- package/scripts/parse-lua-surface.ts +187 -0
- package/scripts/parse-luals.ts +473 -22
- 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 +29 -2
- package/scripts/sync-markdown-types.ts +761 -0
- package/scripts/sync-openapi-types.ts +308 -0
- package/scripts/sync-script-api-types.ts +367 -0
- 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/immutable.immutable.json +0 -63
- package/api-doc/lang.lang.json +0 -411
- package/api-doc/log.log.json +0 -50
- package/api-doc/narrator.narrator.json +0 -150
- package/api-doc/proto.proto.json +0 -355
- package/api-doc/squid.squid.json +0 -660
- package/api-doc/tweener.tweener.json +0 -419
- package/generated/bridge.bridge.d.ts +0 -533
- package/generated/defcon.console.d.ts +0 -24
- package/generated/defsave.defsave.d.ts +0 -31
- package/generated/event.event.d.ts +0 -54
- package/generated/immutable.immutable.d.ts +0 -13
- package/generated/lang.lang.d.ts +0 -33
- package/generated/log.log.d.ts +0 -40
- package/generated/nakama.nakama.d.ts +0 -594
- package/generated/narrator.narrator.d.ts +0 -66
- package/generated/proto.proto.d.ts +0 -36
- package/generated/squid.squid.d.ts +0 -106
- package/generated/tweener.tweener.d.ts +0 -151
- /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": "defmath
|
|
3
|
+
"namespace": "defmath",
|
|
4
4
|
"brief": "",
|
|
5
5
|
"description": ""
|
|
6
6
|
},
|
|
@@ -1146,7 +1146,7 @@
|
|
|
1146
1146
|
"type": "FUNCTION",
|
|
1147
1147
|
"name": "in_triangle",
|
|
1148
1148
|
"brief": "Used to find a point in a triangle",
|
|
1149
|
-
"description": "Used to find a point in a triangle\nx0, y0 are the points that are being checked against the rest to see if it's inside",
|
|
1149
|
+
"description": "Used to find a point in a triangle\nx0, y0 are the points that are being checked against the rest to see if it's inside\narr must be 6 in length: top x/y, bottom right x/y, bottom left x/y",
|
|
1150
1150
|
"parameters": [
|
|
1151
1151
|
{
|
|
1152
1152
|
"name": "x0",
|
|
@@ -1165,50 +1165,10 @@
|
|
|
1165
1165
|
"is_optional": "False"
|
|
1166
1166
|
},
|
|
1167
1167
|
{
|
|
1168
|
-
"name": "
|
|
1169
|
-
"doc": "",
|
|
1170
|
-
"types": [
|
|
1171
|
-
"number"
|
|
1172
|
-
],
|
|
1173
|
-
"is_optional": "False"
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
"name": "y1",
|
|
1177
|
-
"doc": "",
|
|
1178
|
-
"types": [
|
|
1179
|
-
"number"
|
|
1180
|
-
],
|
|
1181
|
-
"is_optional": "False"
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
"name": "x2",
|
|
1185
|
-
"doc": "",
|
|
1186
|
-
"types": [
|
|
1187
|
-
"number"
|
|
1188
|
-
],
|
|
1189
|
-
"is_optional": "False"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
"name": "y2",
|
|
1193
|
-
"doc": "",
|
|
1194
|
-
"types": [
|
|
1195
|
-
"number"
|
|
1196
|
-
],
|
|
1197
|
-
"is_optional": "False"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"name": "x3",
|
|
1201
|
-
"doc": "",
|
|
1202
|
-
"types": [
|
|
1203
|
-
"number"
|
|
1204
|
-
],
|
|
1205
|
-
"is_optional": "False"
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
"name": "y3",
|
|
1168
|
+
"name": "arr",
|
|
1209
1169
|
"doc": "",
|
|
1210
1170
|
"types": [
|
|
1211
|
-
"number"
|
|
1171
|
+
"[ number, number, number, number, number, number ]"
|
|
1212
1172
|
],
|
|
1213
1173
|
"is_optional": "False"
|
|
1214
1174
|
}
|
|
@@ -1226,8 +1186,8 @@
|
|
|
1226
1186
|
{
|
|
1227
1187
|
"type": "FUNCTION",
|
|
1228
1188
|
"name": "box_intersect",
|
|
1229
|
-
"brief": "
|
|
1230
|
-
"description": "
|
|
1189
|
+
"brief": "box intersection of 2 square",
|
|
1190
|
+
"description": "box intersection of 2 square",
|
|
1231
1191
|
"parameters": [
|
|
1232
1192
|
{
|
|
1233
1193
|
"name": "ax",
|
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"namespace": "defsave",
|
|
4
|
+
"brief": "Save and load config and user data persistently between a Defold project's sessions",
|
|
5
|
+
"description": "Save and load config and user data persistently between a Defold project's sessions"
|
|
6
|
+
},
|
|
7
|
+
"elements": [
|
|
8
|
+
{
|
|
9
|
+
"type": "VARIABLE",
|
|
10
|
+
"name": "autosave",
|
|
11
|
+
"brief": "Set to true to autosave all loaded files that are changed on a timer",
|
|
12
|
+
"description": "Set to true to autosave all loaded files that are changed on a timer",
|
|
13
|
+
"types": [
|
|
14
|
+
"boolean"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "VARIABLE",
|
|
19
|
+
"name": "autosave_timer",
|
|
20
|
+
"brief": "Amount of seconds between autosaves if changes have been made",
|
|
21
|
+
"description": "Amount of seconds between autosaves if changes have been made",
|
|
22
|
+
"types": [
|
|
23
|
+
"number"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "VARIABLE",
|
|
28
|
+
"name": "timer",
|
|
29
|
+
"brief": "Current timer value, only increases if autosave is enabled",
|
|
30
|
+
"description": "Current timer value, only increases if autosave is enabled",
|
|
31
|
+
"types": [
|
|
32
|
+
"number"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "VARIABLE",
|
|
37
|
+
"name": "changed",
|
|
38
|
+
"brief": "Locally used but can be useful to have exposed",
|
|
39
|
+
"description": "Locally used but can be useful to have exposed",
|
|
40
|
+
"types": [
|
|
41
|
+
"boolean"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "VARIABLE",
|
|
46
|
+
"name": "verbose",
|
|
47
|
+
"brief": "If true then more information will be printed, such as autosaves",
|
|
48
|
+
"description": "If true then more information will be printed, such as autosaves",
|
|
49
|
+
"types": [
|
|
50
|
+
"boolean"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "VARIABLE",
|
|
55
|
+
"name": "block_reloading",
|
|
56
|
+
"brief": "If true then files already loaded will never be overwritten with a reload",
|
|
57
|
+
"description": "If true then files already loaded will never be overwritten with a reload",
|
|
58
|
+
"types": [
|
|
59
|
+
"boolean"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "VARIABLE",
|
|
64
|
+
"name": "appname",
|
|
65
|
+
"brief": "Determines part of the path for saving files to",
|
|
66
|
+
"description": "Determines part of the path for saving files to",
|
|
67
|
+
"types": [
|
|
68
|
+
"string"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "VARIABLE",
|
|
73
|
+
"name": "loaded",
|
|
74
|
+
"brief": "List of files currently loaded",
|
|
75
|
+
"description": "List of files currently loaded",
|
|
76
|
+
"types": [
|
|
77
|
+
"LuaMap<string, unknown>"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "VARIABLE",
|
|
82
|
+
"name": "sysinfo",
|
|
83
|
+
"brief": "System information captured at module load",
|
|
84
|
+
"description": "System information captured at module load",
|
|
85
|
+
"types": [
|
|
86
|
+
"ReturnType<typeof sys.get_sys_info>"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "VARIABLE",
|
|
91
|
+
"name": "use_default_data",
|
|
92
|
+
"brief": "If true will attempt to load default data from the default_data table when loading an empty file",
|
|
93
|
+
"description": "If true will attempt to load default data from the default_data table when loading an empty file",
|
|
94
|
+
"types": [
|
|
95
|
+
"boolean"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "VARIABLE",
|
|
100
|
+
"name": "enable_encryption",
|
|
101
|
+
"brief": "If true then all data saved and loaded will be encrypted with AES - SLOWER",
|
|
102
|
+
"description": "If true then all data saved and loaded will be encrypted with AES - SLOWER",
|
|
103
|
+
"types": [
|
|
104
|
+
"boolean"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "VARIABLE",
|
|
109
|
+
"name": "encryption_key",
|
|
110
|
+
"brief": "Pick an encryption key to use if you're using encryption",
|
|
111
|
+
"description": "Pick an encryption key to use if you're using encryption",
|
|
112
|
+
"types": [
|
|
113
|
+
"string"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "VARIABLE",
|
|
118
|
+
"name": "enable_obfuscation",
|
|
119
|
+
"brief": "If true then all data saved and loaded will be XOR obfuscated - FASTER",
|
|
120
|
+
"description": "If true then all data saved and loaded will be XOR obfuscated - FASTER",
|
|
121
|
+
"types": [
|
|
122
|
+
"boolean"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "VARIABLE",
|
|
127
|
+
"name": "obfuscation_key",
|
|
128
|
+
"brief": "Pick an obfuscation key to use if you're using obfuscation; the longer the key the better",
|
|
129
|
+
"description": "Pick an obfuscation key to use if you're using obfuscation; the longer the key the better",
|
|
130
|
+
"types": [
|
|
131
|
+
"string"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "VARIABLE",
|
|
136
|
+
"name": "use_serialize",
|
|
137
|
+
"brief": "If true then data is serialized with sys.serialize rather than encoded as JSON",
|
|
138
|
+
"description": "If true then data is serialized with sys.serialize rather than encoded as JSON",
|
|
139
|
+
"types": [
|
|
140
|
+
"boolean"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "VARIABLE",
|
|
145
|
+
"name": "default_data",
|
|
146
|
+
"brief": "Default data to set files to if any cannot be loaded",
|
|
147
|
+
"description": "Default data to set files to if any cannot be loaded",
|
|
148
|
+
"types": [
|
|
149
|
+
"LuaMap<string, unknown>"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "FUNCTION",
|
|
154
|
+
"name": "set_appname",
|
|
155
|
+
"brief": "",
|
|
156
|
+
"description": "",
|
|
157
|
+
"parameters": [
|
|
158
|
+
{
|
|
159
|
+
"name": "name",
|
|
160
|
+
"doc": "",
|
|
161
|
+
"types": [
|
|
162
|
+
"string"
|
|
163
|
+
],
|
|
164
|
+
"is_optional": "False"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"returnvalues": []
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "FUNCTION",
|
|
171
|
+
"name": "obfuscate",
|
|
172
|
+
"brief": "XOR the input against a key, cycling the key as needed. Defaults to obfuscation_key.",
|
|
173
|
+
"description": "XOR the input against a key, cycling the key as needed. Defaults to obfuscation_key.",
|
|
174
|
+
"parameters": [
|
|
175
|
+
{
|
|
176
|
+
"name": "input",
|
|
177
|
+
"doc": "",
|
|
178
|
+
"types": [
|
|
179
|
+
"string"
|
|
180
|
+
],
|
|
181
|
+
"is_optional": "False"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "key",
|
|
185
|
+
"doc": "",
|
|
186
|
+
"types": [
|
|
187
|
+
"string"
|
|
188
|
+
],
|
|
189
|
+
"is_optional": "True"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"returnvalues": [
|
|
193
|
+
{
|
|
194
|
+
"name": "",
|
|
195
|
+
"doc": "",
|
|
196
|
+
"types": [
|
|
197
|
+
"string"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "FUNCTION",
|
|
204
|
+
"name": "get_file_path",
|
|
205
|
+
"brief": "The save path a file resolves to, or nil when no file was given",
|
|
206
|
+
"description": "The save path a file resolves to, or nil when no file was given",
|
|
207
|
+
"parameters": [
|
|
208
|
+
{
|
|
209
|
+
"name": "file",
|
|
210
|
+
"doc": "",
|
|
211
|
+
"types": [
|
|
212
|
+
"string"
|
|
213
|
+
],
|
|
214
|
+
"is_optional": "False"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"returnvalues": [
|
|
218
|
+
{
|
|
219
|
+
"name": "",
|
|
220
|
+
"doc": "",
|
|
221
|
+
"types": [
|
|
222
|
+
"string | undefined"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "FUNCTION",
|
|
229
|
+
"name": "load",
|
|
230
|
+
"brief": "",
|
|
231
|
+
"description": "",
|
|
232
|
+
"parameters": [
|
|
233
|
+
{
|
|
234
|
+
"name": "file",
|
|
235
|
+
"doc": "",
|
|
236
|
+
"types": [
|
|
237
|
+
"string"
|
|
238
|
+
],
|
|
239
|
+
"is_optional": "False"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"returnvalues": [
|
|
243
|
+
{
|
|
244
|
+
"name": "",
|
|
245
|
+
"doc": "",
|
|
246
|
+
"types": [
|
|
247
|
+
"boolean | undefined"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "FUNCTION",
|
|
254
|
+
"name": "get",
|
|
255
|
+
"brief": "",
|
|
256
|
+
"description": "",
|
|
257
|
+
"parameters": [
|
|
258
|
+
{
|
|
259
|
+
"name": "file",
|
|
260
|
+
"doc": "",
|
|
261
|
+
"types": [
|
|
262
|
+
"string"
|
|
263
|
+
],
|
|
264
|
+
"is_optional": "False"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "key",
|
|
268
|
+
"doc": "",
|
|
269
|
+
"types": [
|
|
270
|
+
"string"
|
|
271
|
+
],
|
|
272
|
+
"is_optional": "False"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"returnvalues": [
|
|
276
|
+
{
|
|
277
|
+
"name": "",
|
|
278
|
+
"doc": "",
|
|
279
|
+
"types": [
|
|
280
|
+
"unknown"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"type": "FUNCTION",
|
|
287
|
+
"name": "set",
|
|
288
|
+
"brief": "",
|
|
289
|
+
"description": "",
|
|
290
|
+
"parameters": [
|
|
291
|
+
{
|
|
292
|
+
"name": "file",
|
|
293
|
+
"doc": "",
|
|
294
|
+
"types": [
|
|
295
|
+
"string"
|
|
296
|
+
],
|
|
297
|
+
"is_optional": "False"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "key",
|
|
301
|
+
"doc": "",
|
|
302
|
+
"types": [
|
|
303
|
+
"string"
|
|
304
|
+
],
|
|
305
|
+
"is_optional": "False"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "value",
|
|
309
|
+
"doc": "",
|
|
310
|
+
"types": [
|
|
311
|
+
"any"
|
|
312
|
+
],
|
|
313
|
+
"is_optional": "False"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"returnvalues": [
|
|
317
|
+
{
|
|
318
|
+
"name": "",
|
|
319
|
+
"doc": "",
|
|
320
|
+
"types": [
|
|
321
|
+
"boolean | undefined"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "FUNCTION",
|
|
328
|
+
"name": "save",
|
|
329
|
+
"brief": "",
|
|
330
|
+
"description": "",
|
|
331
|
+
"parameters": [
|
|
332
|
+
{
|
|
333
|
+
"name": "file",
|
|
334
|
+
"doc": "",
|
|
335
|
+
"types": [
|
|
336
|
+
"string"
|
|
337
|
+
],
|
|
338
|
+
"is_optional": "False"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "force",
|
|
342
|
+
"doc": "",
|
|
343
|
+
"types": [
|
|
344
|
+
"boolean"
|
|
345
|
+
],
|
|
346
|
+
"is_optional": "True"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"returnvalues": [
|
|
350
|
+
{
|
|
351
|
+
"name": "",
|
|
352
|
+
"doc": "",
|
|
353
|
+
"types": [
|
|
354
|
+
"boolean | undefined"
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "FUNCTION",
|
|
361
|
+
"name": "save_all",
|
|
362
|
+
"brief": "You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.",
|
|
363
|
+
"description": "You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.",
|
|
364
|
+
"parameters": [
|
|
365
|
+
{
|
|
366
|
+
"name": "force",
|
|
367
|
+
"doc": "false only saves changed files and true saves all files",
|
|
368
|
+
"types": [
|
|
369
|
+
"boolean"
|
|
370
|
+
],
|
|
371
|
+
"is_optional": "True"
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
"returnvalues": []
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"type": "FUNCTION",
|
|
378
|
+
"name": "key_exists",
|
|
379
|
+
"brief": "Whether a key is set on a loaded file. Returns nil when the file is loaded but the key is absent.",
|
|
380
|
+
"description": "Whether a key is set on a loaded file. Returns nil when the file is loaded but the key is absent.",
|
|
381
|
+
"parameters": [
|
|
382
|
+
{
|
|
383
|
+
"name": "file",
|
|
384
|
+
"doc": "",
|
|
385
|
+
"types": [
|
|
386
|
+
"string"
|
|
387
|
+
],
|
|
388
|
+
"is_optional": "False"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "key",
|
|
392
|
+
"doc": "",
|
|
393
|
+
"types": [
|
|
394
|
+
"string"
|
|
395
|
+
],
|
|
396
|
+
"is_optional": "False"
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"returnvalues": [
|
|
400
|
+
{
|
|
401
|
+
"name": "",
|
|
402
|
+
"doc": "",
|
|
403
|
+
"types": [
|
|
404
|
+
"boolean | undefined"
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"type": "FUNCTION",
|
|
411
|
+
"name": "isset",
|
|
412
|
+
"brief": "Alias of key_exists",
|
|
413
|
+
"description": "Alias of key_exists",
|
|
414
|
+
"parameters": [
|
|
415
|
+
{
|
|
416
|
+
"name": "file",
|
|
417
|
+
"doc": "",
|
|
418
|
+
"types": [
|
|
419
|
+
"string"
|
|
420
|
+
],
|
|
421
|
+
"is_optional": "False"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "key",
|
|
425
|
+
"doc": "",
|
|
426
|
+
"types": [
|
|
427
|
+
"string"
|
|
428
|
+
],
|
|
429
|
+
"is_optional": "False"
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"returnvalues": [
|
|
433
|
+
{
|
|
434
|
+
"name": "",
|
|
435
|
+
"doc": "",
|
|
436
|
+
"types": [
|
|
437
|
+
"boolean | undefined"
|
|
438
|
+
]
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "FUNCTION",
|
|
444
|
+
"name": "reset_to_default",
|
|
445
|
+
"brief": "Reset a file to its default_data entry, or to empty when it has none",
|
|
446
|
+
"description": "Reset a file to its default_data entry, or to empty when it has none",
|
|
447
|
+
"parameters": [
|
|
448
|
+
{
|
|
449
|
+
"name": "file",
|
|
450
|
+
"doc": "",
|
|
451
|
+
"types": [
|
|
452
|
+
"string"
|
|
453
|
+
],
|
|
454
|
+
"is_optional": "False"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"returnvalues": [
|
|
458
|
+
{
|
|
459
|
+
"name": "",
|
|
460
|
+
"doc": "",
|
|
461
|
+
"types": [
|
|
462
|
+
"boolean | undefined"
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"type": "FUNCTION",
|
|
469
|
+
"name": "is_loaded",
|
|
470
|
+
"brief": "Whether a file is currently in the loaded list",
|
|
471
|
+
"description": "Whether a file is currently in the loaded list",
|
|
472
|
+
"parameters": [
|
|
473
|
+
{
|
|
474
|
+
"name": "file",
|
|
475
|
+
"doc": "",
|
|
476
|
+
"types": [
|
|
477
|
+
"string"
|
|
478
|
+
],
|
|
479
|
+
"is_optional": "False"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"returnvalues": [
|
|
483
|
+
{
|
|
484
|
+
"name": "",
|
|
485
|
+
"doc": "",
|
|
486
|
+
"types": [
|
|
487
|
+
"boolean"
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"type": "FUNCTION",
|
|
494
|
+
"name": "update",
|
|
495
|
+
"brief": "In your update, if you want autosave to be enabled, you will need to include",
|
|
496
|
+
"description": "In your update, if you want autosave to be enabled, you will need to include",
|
|
497
|
+
"parameters": [
|
|
498
|
+
{
|
|
499
|
+
"name": "dt",
|
|
500
|
+
"doc": "",
|
|
501
|
+
"types": [
|
|
502
|
+
"number"
|
|
503
|
+
],
|
|
504
|
+
"is_optional": "False"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"returnvalues": []
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"type": "FUNCTION",
|
|
511
|
+
"name": "final",
|
|
512
|
+
"brief": "Save all loaded files; call from your script's final",
|
|
513
|
+
"description": "Save all loaded files; call from your script's final",
|
|
514
|
+
"parameters": [],
|
|
515
|
+
"returnvalues": []
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
}
|