s2cfgtojson 3.6.0 → 3.7.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/package.json +1 -1
- package/types.mts +82 -15
package/package.json
CHANGED
package/types.mts
CHANGED
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
EGrenadeType,
|
|
76
76
|
EFastUseGroupType,
|
|
77
77
|
EDetectorType,
|
|
78
|
+
ESpawnType,
|
|
78
79
|
} from "./enums.mts";
|
|
79
80
|
|
|
80
81
|
import { Struct } from "./Struct.mjs";
|
|
@@ -1785,7 +1786,7 @@ interface IAmmoPrototype extends IItemPrototype {
|
|
|
1785
1786
|
CaliberSoundSwitch: string;
|
|
1786
1787
|
}
|
|
1787
1788
|
|
|
1788
|
-
export type AmmoPrototype = IAmmoPrototype
|
|
1789
|
+
export type AmmoPrototype = GetStructType<IAmmoPrototype>;
|
|
1789
1790
|
|
|
1790
1791
|
interface IArtifactPrototype extends IItemPrototype {
|
|
1791
1792
|
AnomalyElementType: EAnomalyElementType;
|
|
@@ -1861,7 +1862,7 @@ interface IArtifactPrototype extends IItemPrototype {
|
|
|
1861
1862
|
IsQuestItem: boolean;
|
|
1862
1863
|
}
|
|
1863
1864
|
|
|
1864
|
-
export type ArtifactPrototype = IArtifactPrototype
|
|
1865
|
+
export type ArtifactPrototype = GetStructType<IArtifactPrototype>;
|
|
1865
1866
|
|
|
1866
1867
|
interface IArmorPrototype extends IItemPrototype {
|
|
1867
1868
|
ArtifactSlots: number;
|
|
@@ -1911,14 +1912,14 @@ interface IArmorPrototype extends IItemPrototype {
|
|
|
1911
1912
|
LocalizationSID: string;
|
|
1912
1913
|
}
|
|
1913
1914
|
|
|
1914
|
-
export type ArmorPrototype = IArmorPrototype
|
|
1915
|
+
export type ArmorPrototype = GetStructType<IArmorPrototype>;
|
|
1915
1916
|
|
|
1916
1917
|
interface IBlueprintPrototype extends IItemPrototype {
|
|
1917
1918
|
LocalizationSID: string;
|
|
1918
1919
|
IsQuestItemPrototype: boolean;
|
|
1919
1920
|
}
|
|
1920
1921
|
|
|
1921
|
-
export type BlueprintPrototype = IBlueprintPrototype
|
|
1922
|
+
export type BlueprintPrototype = GetStructType<IBlueprintPrototype>;
|
|
1922
1923
|
|
|
1923
1924
|
interface IAttachPrototype extends IItemPrototype {
|
|
1924
1925
|
AttachType: EAttachType;
|
|
@@ -1990,7 +1991,7 @@ interface IAttachPrototype extends IItemPrototype {
|
|
|
1990
1991
|
MeshInWorldPrototypeSID: string;
|
|
1991
1992
|
}
|
|
1992
1993
|
|
|
1993
|
-
export type AttachPrototype = IAttachPrototype
|
|
1994
|
+
export type AttachPrototype = GetStructType<IAttachPrototype>;
|
|
1994
1995
|
|
|
1995
1996
|
interface IConsumablePrototype extends IItemPrototype {
|
|
1996
1997
|
Icon1x1: string;
|
|
@@ -2014,7 +2015,7 @@ interface IConsumablePrototype extends IItemPrototype {
|
|
|
2014
2015
|
StaticMeshPrototypeSID: string;
|
|
2015
2016
|
}
|
|
2016
2017
|
|
|
2017
|
-
export type ConsumablePrototype = IConsumablePrototype
|
|
2018
|
+
export type ConsumablePrototype = GetStructType<IConsumablePrototype>;
|
|
2018
2019
|
|
|
2019
2020
|
interface IDetectorPrototype extends IItemPrototype {
|
|
2020
2021
|
DetectorType: EDetectorType;
|
|
@@ -2044,7 +2045,7 @@ interface IDetectorPrototype extends IItemPrototype {
|
|
|
2044
2045
|
ExclusionAnomalyList: string[];
|
|
2045
2046
|
}
|
|
2046
2047
|
|
|
2047
|
-
export type DetectorPrototype = IDetectorPrototype
|
|
2048
|
+
export type DetectorPrototype = GetStructType<IDetectorPrototype>;
|
|
2048
2049
|
|
|
2049
2050
|
interface IGDItemPrototype extends IItemPrototype {
|
|
2050
2051
|
IsQuestItemPrototype: boolean;
|
|
@@ -2052,7 +2053,7 @@ interface IGDItemPrototype extends IItemPrototype {
|
|
|
2052
2053
|
LocalizationSID: string;
|
|
2053
2054
|
}
|
|
2054
2055
|
|
|
2055
|
-
export type GDItemPrototype = IGDItemPrototype
|
|
2056
|
+
export type GDItemPrototype = GetStructType<IGDItemPrototype>;
|
|
2056
2057
|
|
|
2057
2058
|
interface IGrenadePrototype extends IItemPrototype {
|
|
2058
2059
|
GrenadeType: EGrenadeType;
|
|
@@ -2080,26 +2081,26 @@ interface IGrenadePrototype extends IItemPrototype {
|
|
|
2080
2081
|
SkeletalMeshPrototypeSID: string;
|
|
2081
2082
|
}
|
|
2082
2083
|
|
|
2083
|
-
export type GrenadePrototype = IGrenadePrototype
|
|
2084
|
+
export type GrenadePrototype = GetStructType<IGrenadePrototype>;
|
|
2084
2085
|
|
|
2085
2086
|
interface IKeyItemPrototype extends IItemPrototype {
|
|
2086
2087
|
LocalizationSID: string;
|
|
2087
2088
|
}
|
|
2088
2089
|
|
|
2089
|
-
export type KeyItemPrototype = IKeyItemPrototype
|
|
2090
|
+
export type KeyItemPrototype = GetStructType<IKeyItemPrototype>;
|
|
2090
2091
|
|
|
2091
2092
|
interface IMoneyPrototype extends IItemPrototype {
|
|
2092
2093
|
LocalizationSID: string;
|
|
2093
2094
|
MeshInWorldPrototypeSID: string;
|
|
2094
2095
|
}
|
|
2095
2096
|
|
|
2096
|
-
export type MoneyPrototype = IMoneyPrototype
|
|
2097
|
+
export type MoneyPrototype = GetStructType<IMoneyPrototype>;
|
|
2097
2098
|
|
|
2098
2099
|
interface IMutantLootPrototype extends IItemPrototype {
|
|
2099
2100
|
LocalizationSID: string;
|
|
2100
2101
|
}
|
|
2101
2102
|
|
|
2102
|
-
export type MutantLootPrototype = IMutantLootPrototype
|
|
2103
|
+
export type MutantLootPrototype = GetStructType<IMutantLootPrototype>;
|
|
2103
2104
|
|
|
2104
2105
|
interface INightVisionGogglesPrototype extends IItemPrototype {
|
|
2105
2106
|
Icon1x1: string;
|
|
@@ -2110,7 +2111,8 @@ interface INightVisionGogglesPrototype extends IItemPrototype {
|
|
|
2110
2111
|
NPCGogglesPrototypeSID: string;
|
|
2111
2112
|
}
|
|
2112
2113
|
|
|
2113
|
-
export type NightVisionGogglesPrototype =
|
|
2114
|
+
export type NightVisionGogglesPrototype =
|
|
2115
|
+
GetStructType<INightVisionGogglesPrototype>;
|
|
2114
2116
|
|
|
2115
2117
|
interface IQuestItemPrototype extends IItemPrototype {
|
|
2116
2118
|
IsQuestItemPrototype: boolean;
|
|
@@ -2143,7 +2145,7 @@ interface IQuestItemPrototype extends IItemPrototype {
|
|
|
2143
2145
|
LocalizationSID: string;
|
|
2144
2146
|
}
|
|
2145
2147
|
|
|
2146
|
-
export type QuestItemPrototype = IQuestItemPrototype
|
|
2148
|
+
export type QuestItemPrototype = GetStructType<IQuestItemPrototype>;
|
|
2147
2149
|
|
|
2148
2150
|
interface IWeaponPrototype extends IItemPrototype {
|
|
2149
2151
|
MeleeWeaponSID: string;
|
|
@@ -2165,4 +2167,69 @@ interface IWeaponPrototype extends IItemPrototype {
|
|
|
2165
2167
|
IsQuestItem: boolean;
|
|
2166
2168
|
}
|
|
2167
2169
|
|
|
2168
|
-
export type WeaponPrototype = IWeaponPrototype
|
|
2170
|
+
export type WeaponPrototype = GetStructType<IWeaponPrototype>;
|
|
2171
|
+
|
|
2172
|
+
export type SpawnActorPrototype = GetStructType<{
|
|
2173
|
+
SID: string;
|
|
2174
|
+
SpawnOnStart: boolean;
|
|
2175
|
+
PositionX: number;
|
|
2176
|
+
PositionY: number;
|
|
2177
|
+
PositionZ: number;
|
|
2178
|
+
RotatorAngleYaw: number;
|
|
2179
|
+
RotatorAnglePitch: number;
|
|
2180
|
+
RotatorAngleRoll: number;
|
|
2181
|
+
ScaleX: number;
|
|
2182
|
+
ScaleY: number;
|
|
2183
|
+
ScaleZ: number;
|
|
2184
|
+
TextAboveActor: string;
|
|
2185
|
+
DLC: string;
|
|
2186
|
+
LevelName: string;
|
|
2187
|
+
PlaceholderActorGuid: string;
|
|
2188
|
+
PlaceholderMapPath: string;
|
|
2189
|
+
MeshPath: string;
|
|
2190
|
+
SpawnedPrototypeSID: string;
|
|
2191
|
+
SpawnType: ESpawnType;
|
|
2192
|
+
bForceCodePhysicsDisabled: boolean;
|
|
2193
|
+
bWakeUpOnStart: boolean;
|
|
2194
|
+
StashPrototypeSID: string;
|
|
2195
|
+
ItemGeneratorSettings: string;
|
|
2196
|
+
TileOffsetIndex: number;
|
|
2197
|
+
ItemSID: string;
|
|
2198
|
+
Durability: number;
|
|
2199
|
+
DisablePhysicsAndCollision: boolean;
|
|
2200
|
+
bRandomChancesForSeparateItems: boolean;
|
|
2201
|
+
ClueVariablePrototypeSID: string;
|
|
2202
|
+
PackOfItemsPrototypeSID: string;
|
|
2203
|
+
UpgradeSID: string;
|
|
2204
|
+
AttachmentSID: string;
|
|
2205
|
+
NodePrototypeVersion: number;
|
|
2206
|
+
NodeCreationVersion: number;
|
|
2207
|
+
DataLayers: string[];
|
|
2208
|
+
Rank: ERank;
|
|
2209
|
+
SignalReceivers: {
|
|
2210
|
+
DestroyReceiver: {
|
|
2211
|
+
Guid: string;
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
SignalSenders: {
|
|
2215
|
+
DestroySender: {
|
|
2216
|
+
Guid: string;
|
|
2217
|
+
Signals: string[];
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
DisablePhysics: boolean;
|
|
2221
|
+
DisableCollision: boolean;
|
|
2222
|
+
DisableDespawn: boolean;
|
|
2223
|
+
DisableLoot: boolean;
|
|
2224
|
+
DisableDrag: boolean;
|
|
2225
|
+
CorpseStashSID: string;
|
|
2226
|
+
DeadPose: string;
|
|
2227
|
+
AmmoCount: number;
|
|
2228
|
+
OverrideRank: boolean;
|
|
2229
|
+
HP: number;
|
|
2230
|
+
DamageMultiplier: number;
|
|
2231
|
+
MoveSpeedMultiplier: number;
|
|
2232
|
+
PsyNPCType: EPsyNPCType;
|
|
2233
|
+
CanBeWounded: boolean;
|
|
2234
|
+
AllowSpawnOnIsolatedNavMesh: boolean;
|
|
2235
|
+
}>;
|