@scm-js/plugin-api 1.56.0 → 1.58.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 +12 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -167,7 +167,7 @@ export interface UnitSettings {
|
|
|
167
167
|
hitPoints: Uint32Array;
|
|
168
168
|
shields: Uint16Array;
|
|
169
169
|
armor: Uint8Array;
|
|
170
|
-
/** Game frames (
|
|
170
|
+
/** Game frames (about 24 per second at Fastest, 15 at Normal). */
|
|
171
171
|
buildTime: Uint16Array;
|
|
172
172
|
mineralCost: Uint16Array;
|
|
173
173
|
gasCost: Uint16Array;
|
|
@@ -516,7 +516,11 @@ declare const ActionFlag: {
|
|
|
516
516
|
declare const TriggerFlag: {
|
|
517
517
|
/** Game bookkeeping: every condition was met this cycle. */
|
|
518
518
|
readonly ConditionsMet: 1;
|
|
519
|
-
/**
|
|
519
|
+
/**
|
|
520
|
+
* Not what the name says: each time the trigger's actions run, the player counts as won
|
|
521
|
+
* without winning, so every other player in the game with no result is defeated, and a
|
|
522
|
+
* Defeat or Draw of this trigger stalls (docs/triggers.md). The name stays for plugins.
|
|
523
|
+
*/
|
|
520
524
|
readonly IgnoreGameEnd: 2;
|
|
521
525
|
/** Same as a Preserve Trigger action. */
|
|
522
526
|
readonly Preserve: 4;
|
|
@@ -605,7 +609,12 @@ export interface Scenario {
|
|
|
605
609
|
/** SWNM: string index per switch (0 = unnamed); null when the file has no section. */
|
|
606
610
|
switchNames: number[] | null;
|
|
607
611
|
}
|
|
608
|
-
|
|
612
|
+
/**
|
|
613
|
+
* The revisions. `remasteredHybrid` is Remastered's VER 64: read like a hybrid 63 file, with
|
|
614
|
+
* no Brood War needed, and allowed STRx. The editor keeps it but does not offer it for a map
|
|
615
|
+
* that is not already one.
|
|
616
|
+
*/
|
|
617
|
+
export type MapVersion = "original" | "hybrid" | "broodwar" | "remastered" | "remasteredHybrid";
|
|
609
618
|
export interface Cv5Group {
|
|
610
619
|
/** Doodad groups store 1 here; terrain groups store a group type. */
|
|
611
620
|
index: number;
|