Skip to content

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

Interface: ComponentMod ​

ts
interface ComponentMod {
  name?: string;
  definition: string;
  assets: ComponentModAsset[];
}

Defined in: componentMod/index.ts:23

A Stormworks component mod.

A component mod always contains a component definition XML and may optionally contain additional assets. Since Stormworks v1.15.11, the definition file name is also stored in the binary format.

Properties ​

PropertyTypeDescription

name?

string

Definition file name without the .xml extension.

When omitted, the legacy v0 layout is written. When provided, the v1 layout is written.

definition

string

Component definition XML.

assets

ComponentModAsset[]

Additional assets included in the component mod.