Skip to content

Documentation / @sw-file-lib/core / parseComponentMod

Function: parseComponentMod() ​

ts
function parseComponentMod(input: BinaryReaderInput): ParsedComponentMod;

Defined in: componentMod/index.ts:100

Parses a Stormworks component mod binary.

The returned object preserves binary metadata such as the format version and serialized sizes.

Parameters ​

ParameterTypeDescription
inputBinaryReaderInputBinary data to parse.

Returns ​

ParsedComponentMod

The parsed component mod.