s2cfgtojson 3.12.0 → 3.13.1

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/package.json +1 -1
  2. package/types.mts +64 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.12.0",
3
+ "version": "3.13.1",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -468,7 +468,7 @@ interface IDialogPrototype {
468
468
  WithEquipped: boolean;
469
469
  GlobalVariablePrototypeSID: string;
470
470
  ChangeValueMode: EChangeValueMode;
471
- VariableValue: number;
471
+ VariableValue: any;
472
472
  ConsumablePrototypeSID: Param;
473
473
  }[];
474
474
  DialogMemberName: string;
@@ -1482,7 +1482,7 @@ export type QuestNodePrototype = GetStructType<{
1482
1482
  PinWeights: number[];
1483
1483
  GlobalVariablePrototypeSID: string;
1484
1484
  ChangeValueMode: EChangeValueMode;
1485
- VariableValue: boolean;
1485
+ VariableValue: any;
1486
1486
  AIThreatState: number;
1487
1487
  Activate: boolean;
1488
1488
  ForceDespawn: boolean;
@@ -2490,7 +2490,7 @@ export type Condition = GetStructType<{
2490
2490
  Money: number | Param;
2491
2491
  GlobalVariablePrototypeSID: string;
2492
2492
  ChangeValueMode: EChangeValueMode;
2493
- VariableValue: number;
2493
+ VariableValue: any;
2494
2494
  Rank: ERank;
2495
2495
  Faction: string;
2496
2496
  Relationships: ERelationLevel;
@@ -2656,3 +2656,64 @@ export type DialogChainPrototype = GetStructType<{
2656
2656
  }[];
2657
2657
  IsPCDialogMember: boolean;
2658
2658
  }>;
2659
+
2660
+ type CommonMeshSlots =
2661
+ | "BodyArmor"
2662
+ | "Face"
2663
+ | "Hea"
2664
+ | "Lhi_a"
2665
+ | "Rhi_a"
2666
+ | "Rhi_b"
2667
+ | "Han"
2668
+ | "Clo"
2669
+ | "Fbe_b"
2670
+ | "Fbe_f"
2671
+ | "Gla"
2672
+ | "Rch"
2673
+ | "Lhi_a_c"
2674
+ | "Lhi_b"
2675
+ | "Rhi_c"
2676
+ | "Leg"
2677
+ | "Fbe"
2678
+ | "Cap"
2679
+ | "Rhi"
2680
+ | "Lhi"
2681
+ | "Hands"
2682
+ | "Hea_a_e_f"
2683
+ | "Lhi_f"
2684
+ | "Rhi_f"
2685
+ | "Rhi_g"
2686
+ | "Fbe_g"
2687
+ | "Fbe_a"
2688
+ | "Fbe_d"
2689
+ | "Lhi_d"
2690
+ | "Rhi_e"
2691
+ | "Fbe_c_d_e_f"
2692
+ | "Mas";
2693
+
2694
+ export type MeshGeneratorPrototype = GetStructType<{
2695
+ SID: string;
2696
+ ParentMeshGeneratorSID: string;
2697
+ Attachments: Record<
2698
+ CommonMeshSlots | `${number}`,
2699
+ { SlotName: string; Attaches: { BodyMeshSID: string; Weight: number }[] }
2700
+ >;
2701
+ Materials: {
2702
+ MaterialGroup: string;
2703
+ Variations: Variation[];
2704
+ }[];
2705
+ CustomData: {
2706
+ MaterialGroup: string;
2707
+ Variations: Variation[];
2708
+ }[];
2709
+ Groom: {
2710
+ CategoryName: string;
2711
+ Variations: Variation[];
2712
+ }[];
2713
+ MergedMesh: string;
2714
+ }>;
2715
+
2716
+ export type Variation = {
2717
+ VariationIndex: number;
2718
+ Weight: number;
2719
+ };