Skip to content

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

Interface: Coupling ​

ts
interface Coupling {
  orientation?: number;
  alignment?: number;
  coupling_type?: string;
  coupling_name?: string;
  coupling_gender?: number;
  alignment_required?: boolean;
  allow_bipolar_alignment?: boolean;
  position?: XmlVec3;
}

Defined in: packages/xml/src/schemas/component-definition.ts:120

Represents <coupling> element in Stormworks component definition data.

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

Parent: ComponentDefinition

If your function only reads the value and does not mutate it, prefer CouplingImmutable for its parameter type.

See ​

Properties ​

PropertyType

orientation?

number

alignment?

number

coupling_type?

string

coupling_name?

string

coupling_gender?

number

alignment_required?

boolean

allow_bipolar_alignment?

boolean

position?

XmlVec3