Skip to content

Documentation / @sw-file-lib/xml / ComponentDefinitionSchemas / SfxLayerImmutable

Interface: SfxLayerImmutable ​

ts
interface SfxLayerImmutable {
  readonly sfx_filename_start?: string;
  readonly sfx_filename_loop?: string;
  readonly sfx_filename_end?: string;
  readonly sfx_gain?: number;
  readonly sfx_loop_start_time?: number;
  readonly sfx_loop_blend_duration?: number;
  readonly sfx_volume_fade_speed?: number;
  readonly sfx_pitch_fade_speed?: number;
}

Defined in: packages/xml/src/schemas/generated/component-definition-immutable.ts:44

Represents <sfx_layer> element in Stormworks component definition data.

XML location: <definition> / <sfx_datas> / <sfx_data> / <sfx_layers> / <sfx_layer>

Parent: SfxDataImmutable

This is the recommended type for function parameters when it does not need to modify the value. Use SfxLayer instead if mutation is required.

See ​

Properties ​

PropertyModifierType

sfx_filename_start?

readonly

string

sfx_filename_loop?

readonly

string

sfx_filename_end?

readonly

string

sfx_gain?

readonly

number

sfx_loop_start_time?

readonly

number

sfx_loop_blend_duration?

readonly

number

sfx_volume_fade_speed?

readonly

number

sfx_pitch_fade_speed?

readonly

number