@satelliteoflove/godot-mcp 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/helpers/mock-godot.d.ts +17 -0
- package/dist/__tests__/helpers/mock-godot.d.ts.map +1 -0
- package/dist/__tests__/helpers/mock-godot.js +33 -0
- package/dist/__tests__/helpers/mock-godot.js.map +1 -0
- package/dist/__tests__/tools/animation.test.d.ts +2 -0
- package/dist/__tests__/tools/animation.test.d.ts.map +1 -0
- package/dist/__tests__/tools/animation.test.js +315 -0
- package/dist/__tests__/tools/animation.test.js.map +1 -0
- package/dist/__tests__/tools/node.test.d.ts +2 -0
- package/dist/__tests__/tools/node.test.d.ts.map +1 -0
- package/dist/__tests__/tools/node.test.js +173 -0
- package/dist/__tests__/tools/node.test.js.map +1 -0
- package/dist/__tests__/tools/scene.test.d.ts +2 -0
- package/dist/__tests__/tools/scene.test.d.ts.map +1 -0
- package/dist/__tests__/tools/scene.test.js +127 -0
- package/dist/__tests__/tools/scene.test.js.map +1 -0
- package/dist/__tests__/tools/tilemap.test.d.ts +2 -0
- package/dist/__tests__/tools/tilemap.test.d.ts.map +1 -0
- package/dist/__tests__/tools/tilemap.test.js +333 -0
- package/dist/__tests__/tools/tilemap.test.js.map +1 -0
- package/dist/connection/websocket.d.ts.map +1 -1
- package/dist/connection/websocket.js +39 -7
- package/dist/connection/websocket.js.map +1 -1
- package/dist/tools/animation.d.ts +152 -216
- package/dist/tools/animation.d.ts.map +1 -1
- package/dist/tools/animation.js +324 -372
- package/dist/tools/animation.js.map +1 -1
- package/dist/tools/tilemap.d.ts +267 -253
- package/dist/tools/tilemap.d.ts.map +1 -1
- package/dist/tools/tilemap.js +273 -304
- package/dist/tools/tilemap.js.map +1 -1
- package/package.json +4 -2
- package/dist/__tests__/registry.test.d.ts +0 -2
- package/dist/__tests__/registry.test.d.ts.map +0 -1
- package/dist/__tests__/registry.test.js +0 -116
- package/dist/__tests__/registry.test.js.map +0 -1
package/dist/tools/tilemap.d.ts
CHANGED
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { AnyToolDefinition } from '../core/types.js';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const tilemapQuery: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
4
|
+
action: z.ZodEnum<["list_layers", "get_info", "get_tileset_info", "get_used_cells", "get_cell", "get_cells_in_region", "convert_coords"]>;
|
|
4
5
|
root_path: z.ZodOptional<z.ZodString>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, {
|
|
8
|
-
root_path?: string | undefined;
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const getTilemapLayerInfo: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
11
|
-
node_path: z.ZodString;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
node_path: string;
|
|
14
|
-
}, {
|
|
15
|
-
node_path: string;
|
|
16
|
-
}>>;
|
|
17
|
-
export declare const getTilesetInfo: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
18
|
-
node_path: z.ZodString;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
node_path: string;
|
|
21
|
-
}, {
|
|
22
|
-
node_path: string;
|
|
23
|
-
}>>;
|
|
24
|
-
export declare const getUsedCells: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
25
|
-
node_path: z.ZodString;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
node_path: string;
|
|
28
|
-
}, {
|
|
29
|
-
node_path: string;
|
|
30
|
-
}>>;
|
|
31
|
-
export declare const getCell: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
32
|
-
node_path: z.ZodString;
|
|
33
|
-
coords: z.ZodObject<{
|
|
6
|
+
node_path: z.ZodOptional<z.ZodString>;
|
|
7
|
+
coords: z.ZodOptional<z.ZodObject<{
|
|
34
8
|
x: z.ZodNumber;
|
|
35
9
|
y: z.ZodNumber;
|
|
36
10
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -39,23 +13,18 @@ export declare const getCell: import("../core/types.js").ToolDefinition<z.ZodObj
|
|
|
39
13
|
}, {
|
|
40
14
|
x: number;
|
|
41
15
|
y: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
16
|
+
}>>;
|
|
17
|
+
min_coords: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
x: z.ZodNumber;
|
|
19
|
+
y: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
21
|
x: number;
|
|
47
22
|
y: number;
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
node_path: string;
|
|
51
|
-
coords: {
|
|
23
|
+
}, {
|
|
52
24
|
x: number;
|
|
53
25
|
y: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export declare const setCell: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
57
|
-
node_path: z.ZodString;
|
|
58
|
-
coords: z.ZodObject<{
|
|
26
|
+
}>>;
|
|
27
|
+
max_coords: z.ZodOptional<z.ZodObject<{
|
|
59
28
|
x: z.ZodNumber;
|
|
60
29
|
y: z.ZodNumber;
|
|
61
30
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -64,9 +33,18 @@ export declare const setCell: import("../core/types.js").ToolDefinition<z.ZodObj
|
|
|
64
33
|
}, {
|
|
65
34
|
x: number;
|
|
66
35
|
y: number;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
36
|
+
}>>;
|
|
37
|
+
local_position: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
x: z.ZodNumber;
|
|
39
|
+
y: z.ZodNumber;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
}, {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
}>>;
|
|
47
|
+
map_coords: z.ZodOptional<z.ZodObject<{
|
|
70
48
|
x: z.ZodNumber;
|
|
71
49
|
y: z.ZodNumber;
|
|
72
50
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -76,67 +54,107 @@ export declare const setCell: import("../core/types.js").ToolDefinition<z.ZodObj
|
|
|
76
54
|
x: number;
|
|
77
55
|
y: number;
|
|
78
56
|
}>>;
|
|
79
|
-
alternative_tile: z.ZodOptional<z.ZodNumber>;
|
|
80
57
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
|
|
82
|
-
|
|
58
|
+
action: "get_info" | "list_layers" | "get_tileset_info" | "get_used_cells" | "get_cell" | "get_cells_in_region" | "convert_coords";
|
|
59
|
+
node_path?: string | undefined;
|
|
60
|
+
root_path?: string | undefined;
|
|
61
|
+
coords?: {
|
|
83
62
|
x: number;
|
|
84
63
|
y: number;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
|
|
64
|
+
} | undefined;
|
|
65
|
+
min_coords?: {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
} | undefined;
|
|
69
|
+
max_coords?: {
|
|
70
|
+
x: number;
|
|
71
|
+
y: number;
|
|
72
|
+
} | undefined;
|
|
73
|
+
local_position?: {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
} | undefined;
|
|
77
|
+
map_coords?: {
|
|
88
78
|
x: number;
|
|
89
79
|
y: number;
|
|
90
80
|
} | undefined;
|
|
91
|
-
alternative_tile?: number | undefined;
|
|
92
81
|
}, {
|
|
93
|
-
|
|
94
|
-
|
|
82
|
+
action: "get_info" | "list_layers" | "get_tileset_info" | "get_used_cells" | "get_cell" | "get_cells_in_region" | "convert_coords";
|
|
83
|
+
node_path?: string | undefined;
|
|
84
|
+
root_path?: string | undefined;
|
|
85
|
+
coords?: {
|
|
95
86
|
x: number;
|
|
96
87
|
y: number;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
atlas_coords?: {
|
|
88
|
+
} | undefined;
|
|
89
|
+
min_coords?: {
|
|
100
90
|
x: number;
|
|
101
91
|
y: number;
|
|
102
92
|
} | undefined;
|
|
103
|
-
|
|
104
|
-
}>>;
|
|
105
|
-
export declare const eraseCell: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
106
|
-
node_path: z.ZodString;
|
|
107
|
-
coords: z.ZodObject<{
|
|
108
|
-
x: z.ZodNumber;
|
|
109
|
-
y: z.ZodNumber;
|
|
110
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
max_coords?: {
|
|
111
94
|
x: number;
|
|
112
95
|
y: number;
|
|
113
|
-
}
|
|
96
|
+
} | undefined;
|
|
97
|
+
local_position?: {
|
|
114
98
|
x: number;
|
|
115
99
|
y: number;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
node_path: string;
|
|
119
|
-
coords: {
|
|
100
|
+
} | undefined;
|
|
101
|
+
map_coords?: {
|
|
120
102
|
x: number;
|
|
121
103
|
y: number;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
104
|
+
} | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
action: "get_info" | "list_layers" | "get_tileset_info" | "get_used_cells" | "get_cell" | "get_cells_in_region" | "convert_coords";
|
|
107
|
+
node_path?: string | undefined;
|
|
108
|
+
root_path?: string | undefined;
|
|
109
|
+
coords?: {
|
|
126
110
|
x: number;
|
|
127
111
|
y: number;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
112
|
+
} | undefined;
|
|
113
|
+
min_coords?: {
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
} | undefined;
|
|
117
|
+
max_coords?: {
|
|
118
|
+
x: number;
|
|
119
|
+
y: number;
|
|
120
|
+
} | undefined;
|
|
121
|
+
local_position?: {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
} | undefined;
|
|
125
|
+
map_coords?: {
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
} | undefined;
|
|
134
129
|
}, {
|
|
135
|
-
|
|
130
|
+
action: "get_info" | "list_layers" | "get_tileset_info" | "get_used_cells" | "get_cell" | "get_cells_in_region" | "convert_coords";
|
|
131
|
+
node_path?: string | undefined;
|
|
132
|
+
root_path?: string | undefined;
|
|
133
|
+
coords?: {
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
} | undefined;
|
|
137
|
+
min_coords?: {
|
|
138
|
+
x: number;
|
|
139
|
+
y: number;
|
|
140
|
+
} | undefined;
|
|
141
|
+
max_coords?: {
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
144
|
+
} | undefined;
|
|
145
|
+
local_position?: {
|
|
146
|
+
x: number;
|
|
147
|
+
y: number;
|
|
148
|
+
} | undefined;
|
|
149
|
+
map_coords?: {
|
|
150
|
+
x: number;
|
|
151
|
+
y: number;
|
|
152
|
+
} | undefined;
|
|
136
153
|
}>>;
|
|
137
|
-
export declare const
|
|
154
|
+
export declare const tilemapEdit: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
155
|
+
action: z.ZodEnum<["set_cell", "erase_cell", "clear_layer", "set_cells_batch"]>;
|
|
138
156
|
node_path: z.ZodString;
|
|
139
|
-
|
|
157
|
+
coords: z.ZodOptional<z.ZodObject<{
|
|
140
158
|
x: z.ZodNumber;
|
|
141
159
|
y: z.ZodNumber;
|
|
142
160
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -145,8 +163,9 @@ export declare const getCellsInRegion: import("../core/types.js").ToolDefinition
|
|
|
145
163
|
}, {
|
|
146
164
|
x: number;
|
|
147
165
|
y: number;
|
|
148
|
-
}
|
|
149
|
-
|
|
166
|
+
}>>;
|
|
167
|
+
source_id: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
atlas_coords: z.ZodOptional<z.ZodObject<{
|
|
150
169
|
x: z.ZodNumber;
|
|
151
170
|
y: z.ZodNumber;
|
|
152
171
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,31 +174,9 @@ export declare const getCellsInRegion: import("../core/types.js").ToolDefinition
|
|
|
155
174
|
}, {
|
|
156
175
|
x: number;
|
|
157
176
|
y: number;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
min_coords: {
|
|
162
|
-
x: number;
|
|
163
|
-
y: number;
|
|
164
|
-
};
|
|
165
|
-
max_coords: {
|
|
166
|
-
x: number;
|
|
167
|
-
y: number;
|
|
168
|
-
};
|
|
169
|
-
}, {
|
|
170
|
-
node_path: string;
|
|
171
|
-
min_coords: {
|
|
172
|
-
x: number;
|
|
173
|
-
y: number;
|
|
174
|
-
};
|
|
175
|
-
max_coords: {
|
|
176
|
-
x: number;
|
|
177
|
-
y: number;
|
|
178
|
-
};
|
|
179
|
-
}>>;
|
|
180
|
-
export declare const setCellsBatch: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
181
|
-
node_path: z.ZodString;
|
|
182
|
-
cells: z.ZodArray<z.ZodObject<{
|
|
177
|
+
}>>;
|
|
178
|
+
alternative_tile: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
cells: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
180
|
coords: z.ZodObject<{
|
|
184
181
|
x: z.ZodNumber;
|
|
185
182
|
y: z.ZodNumber;
|
|
@@ -224,10 +221,21 @@ export declare const setCellsBatch: import("../core/types.js").ToolDefinition<z.
|
|
|
224
221
|
y: number;
|
|
225
222
|
} | undefined;
|
|
226
223
|
alternative_tile?: number | undefined;
|
|
227
|
-
}>, "many"
|
|
224
|
+
}>, "many">>;
|
|
228
225
|
}, "strip", z.ZodTypeAny, {
|
|
229
226
|
node_path: string;
|
|
230
|
-
|
|
227
|
+
action: "set_cell" | "erase_cell" | "clear_layer" | "set_cells_batch";
|
|
228
|
+
coords?: {
|
|
229
|
+
x: number;
|
|
230
|
+
y: number;
|
|
231
|
+
} | undefined;
|
|
232
|
+
source_id?: number | undefined;
|
|
233
|
+
atlas_coords?: {
|
|
234
|
+
x: number;
|
|
235
|
+
y: number;
|
|
236
|
+
} | undefined;
|
|
237
|
+
alternative_tile?: number | undefined;
|
|
238
|
+
cells?: {
|
|
231
239
|
coords: {
|
|
232
240
|
x: number;
|
|
233
241
|
y: number;
|
|
@@ -238,10 +246,21 @@ export declare const setCellsBatch: import("../core/types.js").ToolDefinition<z.
|
|
|
238
246
|
y: number;
|
|
239
247
|
} | undefined;
|
|
240
248
|
alternative_tile?: number | undefined;
|
|
241
|
-
}[];
|
|
249
|
+
}[] | undefined;
|
|
242
250
|
}, {
|
|
243
251
|
node_path: string;
|
|
244
|
-
|
|
252
|
+
action: "set_cell" | "erase_cell" | "clear_layer" | "set_cells_batch";
|
|
253
|
+
coords?: {
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
} | undefined;
|
|
257
|
+
source_id?: number | undefined;
|
|
258
|
+
atlas_coords?: {
|
|
259
|
+
x: number;
|
|
260
|
+
y: number;
|
|
261
|
+
} | undefined;
|
|
262
|
+
alternative_tile?: number | undefined;
|
|
263
|
+
cells?: {
|
|
245
264
|
coords: {
|
|
246
265
|
x: number;
|
|
247
266
|
y: number;
|
|
@@ -252,82 +271,63 @@ export declare const setCellsBatch: import("../core/types.js").ToolDefinition<z.
|
|
|
252
271
|
y: number;
|
|
253
272
|
} | undefined;
|
|
254
273
|
alternative_tile?: number | undefined;
|
|
255
|
-
}[];
|
|
256
|
-
}
|
|
257
|
-
export declare const convertCoords: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
258
|
-
node_path: z.ZodString;
|
|
259
|
-
local_position: z.ZodOptional<z.ZodObject<{
|
|
260
|
-
x: z.ZodNumber;
|
|
261
|
-
y: z.ZodNumber;
|
|
262
|
-
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
x: number;
|
|
264
|
-
y: number;
|
|
265
|
-
}, {
|
|
266
|
-
x: number;
|
|
267
|
-
y: number;
|
|
268
|
-
}>>;
|
|
269
|
-
map_coords: z.ZodOptional<z.ZodObject<{
|
|
270
|
-
x: z.ZodNumber;
|
|
271
|
-
y: z.ZodNumber;
|
|
272
|
-
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
x: number;
|
|
274
|
-
y: number;
|
|
275
|
-
}, {
|
|
276
|
-
x: number;
|
|
277
|
-
y: number;
|
|
278
|
-
}>>;
|
|
279
|
-
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
}[] | undefined;
|
|
275
|
+
}>, {
|
|
280
276
|
node_path: string;
|
|
281
|
-
|
|
277
|
+
action: "set_cell" | "erase_cell" | "clear_layer" | "set_cells_batch";
|
|
278
|
+
coords?: {
|
|
282
279
|
x: number;
|
|
283
280
|
y: number;
|
|
284
281
|
} | undefined;
|
|
285
|
-
|
|
282
|
+
source_id?: number | undefined;
|
|
283
|
+
atlas_coords?: {
|
|
286
284
|
x: number;
|
|
287
285
|
y: number;
|
|
288
286
|
} | undefined;
|
|
287
|
+
alternative_tile?: number | undefined;
|
|
288
|
+
cells?: {
|
|
289
|
+
coords: {
|
|
290
|
+
x: number;
|
|
291
|
+
y: number;
|
|
292
|
+
};
|
|
293
|
+
source_id?: number | undefined;
|
|
294
|
+
atlas_coords?: {
|
|
295
|
+
x: number;
|
|
296
|
+
y: number;
|
|
297
|
+
} | undefined;
|
|
298
|
+
alternative_tile?: number | undefined;
|
|
299
|
+
}[] | undefined;
|
|
289
300
|
}, {
|
|
290
301
|
node_path: string;
|
|
291
|
-
|
|
302
|
+
action: "set_cell" | "erase_cell" | "clear_layer" | "set_cells_batch";
|
|
303
|
+
coords?: {
|
|
292
304
|
x: number;
|
|
293
305
|
y: number;
|
|
294
306
|
} | undefined;
|
|
295
|
-
|
|
307
|
+
source_id?: number | undefined;
|
|
308
|
+
atlas_coords?: {
|
|
296
309
|
x: number;
|
|
297
310
|
y: number;
|
|
298
311
|
} | undefined;
|
|
312
|
+
alternative_tile?: number | undefined;
|
|
313
|
+
cells?: {
|
|
314
|
+
coords: {
|
|
315
|
+
x: number;
|
|
316
|
+
y: number;
|
|
317
|
+
};
|
|
318
|
+
source_id?: number | undefined;
|
|
319
|
+
atlas_coords?: {
|
|
320
|
+
x: number;
|
|
321
|
+
y: number;
|
|
322
|
+
} | undefined;
|
|
323
|
+
alternative_tile?: number | undefined;
|
|
324
|
+
}[] | undefined;
|
|
299
325
|
}>>;
|
|
300
|
-
export declare const
|
|
326
|
+
export declare const gridmapQuery: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
327
|
+
action: z.ZodEnum<["list", "get_info", "get_meshlib_info", "get_used_cells", "get_cell", "get_cells_by_item"]>;
|
|
301
328
|
root_path: z.ZodOptional<z.ZodString>;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}, {
|
|
305
|
-
root_path?: string | undefined;
|
|
306
|
-
}>>;
|
|
307
|
-
export declare const getGridmapInfo: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
308
|
-
node_path: z.ZodString;
|
|
309
|
-
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
node_path: string;
|
|
311
|
-
}, {
|
|
312
|
-
node_path: string;
|
|
313
|
-
}>>;
|
|
314
|
-
export declare const getMeshlibInfo: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
315
|
-
node_path: z.ZodString;
|
|
316
|
-
}, "strip", z.ZodTypeAny, {
|
|
317
|
-
node_path: string;
|
|
318
|
-
}, {
|
|
319
|
-
node_path: string;
|
|
320
|
-
}>>;
|
|
321
|
-
export declare const getGridmapUsedCells: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
322
|
-
node_path: z.ZodString;
|
|
323
|
-
}, "strip", z.ZodTypeAny, {
|
|
324
|
-
node_path: string;
|
|
325
|
-
}, {
|
|
326
|
-
node_path: string;
|
|
327
|
-
}>>;
|
|
328
|
-
export declare const getGridmapCell: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
329
|
-
node_path: z.ZodString;
|
|
330
|
-
coords: z.ZodObject<{
|
|
329
|
+
node_path: z.ZodOptional<z.ZodString>;
|
|
330
|
+
coords: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
x: z.ZodNumber;
|
|
332
332
|
y: z.ZodNumber;
|
|
333
333
|
z: z.ZodNumber;
|
|
@@ -339,61 +339,53 @@ export declare const getGridmapCell: import("../core/types.js").ToolDefinition<z
|
|
|
339
339
|
x: number;
|
|
340
340
|
y: number;
|
|
341
341
|
z: number;
|
|
342
|
-
}
|
|
342
|
+
}>>;
|
|
343
|
+
item: z.ZodOptional<z.ZodNumber>;
|
|
343
344
|
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
|
|
345
|
-
|
|
345
|
+
action: "get_info" | "get_used_cells" | "get_cell" | "list" | "get_meshlib_info" | "get_cells_by_item";
|
|
346
|
+
node_path?: string | undefined;
|
|
347
|
+
root_path?: string | undefined;
|
|
348
|
+
coords?: {
|
|
346
349
|
x: number;
|
|
347
350
|
y: number;
|
|
348
351
|
z: number;
|
|
349
|
-
};
|
|
352
|
+
} | undefined;
|
|
353
|
+
item?: number | undefined;
|
|
350
354
|
}, {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
z: number;
|
|
356
|
-
};
|
|
357
|
-
}>>;
|
|
358
|
-
export declare const setGridmapCell: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
359
|
-
node_path: z.ZodString;
|
|
360
|
-
coords: z.ZodObject<{
|
|
361
|
-
x: z.ZodNumber;
|
|
362
|
-
y: z.ZodNumber;
|
|
363
|
-
z: z.ZodNumber;
|
|
364
|
-
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
x: number;
|
|
366
|
-
y: number;
|
|
367
|
-
z: number;
|
|
368
|
-
}, {
|
|
355
|
+
action: "get_info" | "get_used_cells" | "get_cell" | "list" | "get_meshlib_info" | "get_cells_by_item";
|
|
356
|
+
node_path?: string | undefined;
|
|
357
|
+
root_path?: string | undefined;
|
|
358
|
+
coords?: {
|
|
369
359
|
x: number;
|
|
370
360
|
y: number;
|
|
371
361
|
z: number;
|
|
372
|
-
}
|
|
373
|
-
item
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
node_path
|
|
377
|
-
|
|
362
|
+
} | undefined;
|
|
363
|
+
item?: number | undefined;
|
|
364
|
+
}>, {
|
|
365
|
+
action: "get_info" | "get_used_cells" | "get_cell" | "list" | "get_meshlib_info" | "get_cells_by_item";
|
|
366
|
+
node_path?: string | undefined;
|
|
367
|
+
root_path?: string | undefined;
|
|
368
|
+
coords?: {
|
|
378
369
|
x: number;
|
|
379
370
|
y: number;
|
|
380
371
|
z: number;
|
|
381
|
-
};
|
|
382
|
-
item
|
|
383
|
-
orientation?: number | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
item?: number | undefined;
|
|
384
374
|
}, {
|
|
385
|
-
|
|
386
|
-
|
|
375
|
+
action: "get_info" | "get_used_cells" | "get_cell" | "list" | "get_meshlib_info" | "get_cells_by_item";
|
|
376
|
+
node_path?: string | undefined;
|
|
377
|
+
root_path?: string | undefined;
|
|
378
|
+
coords?: {
|
|
387
379
|
x: number;
|
|
388
380
|
y: number;
|
|
389
381
|
z: number;
|
|
390
|
-
};
|
|
391
|
-
item
|
|
392
|
-
orientation?: number | undefined;
|
|
382
|
+
} | undefined;
|
|
383
|
+
item?: number | undefined;
|
|
393
384
|
}>>;
|
|
394
|
-
export declare const
|
|
385
|
+
export declare const gridmapEdit: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
386
|
+
action: z.ZodEnum<["set_cell", "clear_cell", "clear", "set_cells_batch"]>;
|
|
395
387
|
node_path: z.ZodString;
|
|
396
|
-
coords: z.ZodObject<{
|
|
388
|
+
coords: z.ZodOptional<z.ZodObject<{
|
|
397
389
|
x: z.ZodNumber;
|
|
398
390
|
y: z.ZodNumber;
|
|
399
391
|
z: z.ZodNumber;
|
|
@@ -405,42 +397,10 @@ export declare const clearGridmapCell: import("../core/types.js").ToolDefinition
|
|
|
405
397
|
x: number;
|
|
406
398
|
y: number;
|
|
407
399
|
z: number;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
x: number;
|
|
413
|
-
y: number;
|
|
414
|
-
z: number;
|
|
415
|
-
};
|
|
416
|
-
}, {
|
|
417
|
-
node_path: string;
|
|
418
|
-
coords: {
|
|
419
|
-
x: number;
|
|
420
|
-
y: number;
|
|
421
|
-
z: number;
|
|
422
|
-
};
|
|
423
|
-
}>>;
|
|
424
|
-
export declare const clearGridmap: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
425
|
-
node_path: z.ZodString;
|
|
426
|
-
}, "strip", z.ZodTypeAny, {
|
|
427
|
-
node_path: string;
|
|
428
|
-
}, {
|
|
429
|
-
node_path: string;
|
|
430
|
-
}>>;
|
|
431
|
-
export declare const getCellsByItem: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
432
|
-
node_path: z.ZodString;
|
|
433
|
-
item: z.ZodNumber;
|
|
434
|
-
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
node_path: string;
|
|
436
|
-
item: number;
|
|
437
|
-
}, {
|
|
438
|
-
node_path: string;
|
|
439
|
-
item: number;
|
|
440
|
-
}>>;
|
|
441
|
-
export declare const setGridmapCellsBatch: import("../core/types.js").ToolDefinition<z.ZodObject<{
|
|
442
|
-
node_path: z.ZodString;
|
|
443
|
-
cells: z.ZodArray<z.ZodObject<{
|
|
400
|
+
}>>;
|
|
401
|
+
item: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
orientation: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
cells: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
444
404
|
coords: z.ZodObject<{
|
|
445
405
|
x: z.ZodNumber;
|
|
446
406
|
y: z.ZodNumber;
|
|
@@ -472,10 +432,16 @@ export declare const setGridmapCellsBatch: import("../core/types.js").ToolDefini
|
|
|
472
432
|
};
|
|
473
433
|
item: number;
|
|
474
434
|
orientation?: number | undefined;
|
|
475
|
-
}>, "many"
|
|
435
|
+
}>, "many">>;
|
|
476
436
|
}, "strip", z.ZodTypeAny, {
|
|
477
437
|
node_path: string;
|
|
478
|
-
|
|
438
|
+
action: "clear" | "set_cell" | "set_cells_batch" | "clear_cell";
|
|
439
|
+
coords?: {
|
|
440
|
+
x: number;
|
|
441
|
+
y: number;
|
|
442
|
+
z: number;
|
|
443
|
+
} | undefined;
|
|
444
|
+
cells?: {
|
|
479
445
|
coords: {
|
|
480
446
|
x: number;
|
|
481
447
|
y: number;
|
|
@@ -483,10 +449,18 @@ export declare const setGridmapCellsBatch: import("../core/types.js").ToolDefini
|
|
|
483
449
|
};
|
|
484
450
|
item: number;
|
|
485
451
|
orientation?: number | undefined;
|
|
486
|
-
}[];
|
|
452
|
+
}[] | undefined;
|
|
453
|
+
item?: number | undefined;
|
|
454
|
+
orientation?: number | undefined;
|
|
487
455
|
}, {
|
|
488
456
|
node_path: string;
|
|
489
|
-
|
|
457
|
+
action: "clear" | "set_cell" | "set_cells_batch" | "clear_cell";
|
|
458
|
+
coords?: {
|
|
459
|
+
x: number;
|
|
460
|
+
y: number;
|
|
461
|
+
z: number;
|
|
462
|
+
} | undefined;
|
|
463
|
+
cells?: {
|
|
490
464
|
coords: {
|
|
491
465
|
x: number;
|
|
492
466
|
y: number;
|
|
@@ -494,7 +468,47 @@ export declare const setGridmapCellsBatch: import("../core/types.js").ToolDefini
|
|
|
494
468
|
};
|
|
495
469
|
item: number;
|
|
496
470
|
orientation?: number | undefined;
|
|
497
|
-
}[];
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
item?: number | undefined;
|
|
473
|
+
orientation?: number | undefined;
|
|
474
|
+
}>, {
|
|
475
|
+
node_path: string;
|
|
476
|
+
action: "clear" | "set_cell" | "set_cells_batch" | "clear_cell";
|
|
477
|
+
coords?: {
|
|
478
|
+
x: number;
|
|
479
|
+
y: number;
|
|
480
|
+
z: number;
|
|
481
|
+
} | undefined;
|
|
482
|
+
cells?: {
|
|
483
|
+
coords: {
|
|
484
|
+
x: number;
|
|
485
|
+
y: number;
|
|
486
|
+
z: number;
|
|
487
|
+
};
|
|
488
|
+
item: number;
|
|
489
|
+
orientation?: number | undefined;
|
|
490
|
+
}[] | undefined;
|
|
491
|
+
item?: number | undefined;
|
|
492
|
+
orientation?: number | undefined;
|
|
493
|
+
}, {
|
|
494
|
+
node_path: string;
|
|
495
|
+
action: "clear" | "set_cell" | "set_cells_batch" | "clear_cell";
|
|
496
|
+
coords?: {
|
|
497
|
+
x: number;
|
|
498
|
+
y: number;
|
|
499
|
+
z: number;
|
|
500
|
+
} | undefined;
|
|
501
|
+
cells?: {
|
|
502
|
+
coords: {
|
|
503
|
+
x: number;
|
|
504
|
+
y: number;
|
|
505
|
+
z: number;
|
|
506
|
+
};
|
|
507
|
+
item: number;
|
|
508
|
+
orientation?: number | undefined;
|
|
509
|
+
}[] | undefined;
|
|
510
|
+
item?: number | undefined;
|
|
511
|
+
orientation?: number | undefined;
|
|
498
512
|
}>>;
|
|
499
513
|
export declare const tilemapTools: AnyToolDefinition[];
|
|
500
514
|
//# sourceMappingURL=tilemap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tilemap.d.ts","sourceRoot":"","sources":["../../src/tools/tilemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tilemap.d.ts","sourceRoot":"","sources":["../../src/tools/tilemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AA0D1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FvB,CAAC;AAuCH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CtB,CAAC;AA8BH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DvB,CAAC;AAsCH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCtB,CAAC;AAEH,eAAO,MAAM,YAAY,EAA6D,iBAAiB,EAAE,CAAC"}
|