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
| Property | Type | Description |
|---|---|---|
| Definition file name without the When omitted, the legacy v0 layout is written. When provided, the v1 layout is written. | |
| Component definition XML. | |
Additional assets included in the component mod. |