Skip to content

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

Interface: CouplingImmutable ​

ts
interface CouplingImmutable {
  readonly orientation?: number;
  readonly alignment?: number;
  readonly coupling_type?: string;
  readonly coupling_name?: string;
  readonly coupling_gender?: number;
  readonly alignment_required?: boolean;
  readonly allow_bipolar_alignment?: boolean;
  readonly position?: XmlVec3Immutable;
}

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

Represents <coupling> element in Stormworks component definition data.

XML location: <definition> / <couplings> / <coupling>

Parent: ComponentDefinitionImmutable

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

See ​

Properties ​

PropertyModifierType

orientation?

readonly

number

alignment?

readonly

number

coupling_type?

readonly

string

coupling_name?

readonly

string

coupling_gender?

readonly

number

alignment_required?

readonly

boolean

allow_bipolar_alignment?

readonly

boolean

position?

readonly

XmlVec3Immutable