Documentation / @sw-file-lib/core / ComponentModAsset
Interface: ComponentModAsset
ts
interface ComponentModAsset {
name: string;
data: string | Uint8Array<ArrayBufferLike>;
}Defined in: componentMod/index.ts:9
An additional asset contained in a Stormworks component mod.
Assets may represent meshes, audio, lua scripts, or other binary resources. The data field may be either a UTF-8 string or raw binary data.
Properties
| Property | Type | Description |
|---|---|---|
| Asset file name, including its extension. | |
| Asset contents. |