s2cfgtojson 3.12.0 → 3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.mts +61 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -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
+ };