@scm-js/plugin-api 1.12.0 → 1.13.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/index.d.ts +9 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1638,6 +1638,8 @@ export interface DoodadPlacementOptions {
|
|
|
1638
1638
|
placeAnywhere: boolean;
|
|
1639
1639
|
/** Keep the left column on an even tile, as StarEdit always does. */
|
|
1640
1640
|
snapToGrid: boolean;
|
|
1641
|
+
/** Place as plain terrain: the tiles (both sections) and any overlay sprite, no DD2 record — a placement and a conversion in one. */
|
|
1642
|
+
asTerrain: boolean;
|
|
1641
1643
|
}
|
|
1642
1644
|
export interface DoodadVerdict {
|
|
1643
1645
|
ok: boolean;
|
|
@@ -2344,6 +2346,13 @@ export interface EditTransaction {
|
|
|
2344
2346
|
/** Stamp a doodad (a `dddata.bin` id) at a tile; returns its record index, or -1 when unknown or off the map. */
|
|
2345
2347
|
placeDoodad(doodadId: number, tx: number, ty: number, owner?: number): number;
|
|
2346
2348
|
removeDoodads(indices: number[]): number;
|
|
2349
|
+
/**
|
|
2350
|
+
* Make doodads plain terrain: their records go, their tiles stay (in TILE as well as
|
|
2351
|
+
* MTXM, so the cells are ground to every tool from here on) and an overlay stays as an
|
|
2352
|
+
* ordinary sprite. The way to touch up a ramp or a cliff piece tile by tile.
|
|
2353
|
+
* Returns records converted.
|
|
2354
|
+
*/
|
|
2355
|
+
convertDoodads(indices: number[]): number;
|
|
2347
2356
|
/** A location in the lowest free slot (pixel bounds); returns the slot, or -1 when the table is full. */
|
|
2348
2357
|
addLocation(bounds: Bounds, name?: string, elevationFlags?: number): number;
|
|
2349
2358
|
editLocation(index: number, patch: LocationPatch): boolean;
|