Skip to content

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

Interface: ParsedComponentModV1 ​

ts
interface ParsedComponentModV1 {
  version: 1;
  dataSize: number;
  name: string;
  definition: string;
  assets: ParsedComponentModAsset[];
}

Defined in: componentMod/index.ts:73

Parsed version 1 component mod.

Introduced in Stormworks v1.15.11, adding the definition file name.

Properties ​

PropertyTypeDescription

version

1

File layout version. Version 1 files include a component name.

dataSize

number

Total byte size declared by the file.

name

string

Component name stored in the file.

definition

string

Component definition XML.

assets

ParsedComponentModAsset[]

Asset files bundled with the component.