@scm-js/plugin-api 1.55.0 → 1.57.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.
Files changed (2) hide show
  1. package/index.d.ts +8 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -151,7 +151,7 @@ export interface Forces {
151
151
  flags: number[];
152
152
  }
153
153
  export interface PlayerRgb {
154
- /** `[r, g, b]` for each of the 8 playable slots; only read when `mode` is `Custom`. */
154
+ /** `[r, g, b]` for each of the 8 playable slots: the colour when `mode` is `Custom`; the editor writes `[0, 0, COLR]` for `Palette`. */
155
155
  rgb: [
156
156
  number,
157
157
  number,
@@ -605,7 +605,12 @@ export interface Scenario {
605
605
  /** SWNM: string index per switch (0 = unnamed); null when the file has no section. */
606
606
  switchNames: number[] | null;
607
607
  }
608
- export type MapVersion = "original" | "hybrid" | "broodwar" | "remastered";
608
+ /**
609
+ * The revisions. `remasteredHybrid` is Remastered's VER 64: read like a hybrid 63 file, with
610
+ * no Brood War needed, and allowed STRx. The editor keeps it but does not offer it for a map
611
+ * that is not already one.
612
+ */
613
+ export type MapVersion = "original" | "hybrid" | "broodwar" | "remastered" | "remasteredHybrid";
609
614
  export interface Cv5Group {
610
615
  /** Doodad groups store 1 here; terrain groups store a group type. */
611
616
  index: number;
@@ -1781,7 +1786,7 @@ export interface PlayerSlotView {
1781
1786
  export interface PlayerPatch {
1782
1787
  type?: number;
1783
1788
  race?: number;
1784
- /** COLR index 0–15 (playable slots). */
1789
+ /** COLR index 0–11 (playable slots). Older versions show a wrong colour past 11, and Remastered skips it. */
1785
1790
  color?: number;
1786
1791
  /** A CRGB custom colour, or null to go back to the palette colour (playable slots). */
1787
1792
  rgb?: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-js/plugin-api",
3
- "version": "1.55.0",
3
+ "version": "1.57.0",
4
4
  "description": "Type declarations for the scmJS plugin API",
5
5
  "license": "MIT",
6
6
  "types": "index.d.ts",