Skip to content

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

Interface: SurfaceImmutable ​

ts
interface SurfaceImmutable {
  readonly orientation?: number;
  readonly rotation?: number;
  readonly shape?: number;
  readonly trans_type?: number;
  readonly flags?: number;
  readonly is_reverse_normals?: boolean;
  readonly is_two_sided?: boolean;
  readonly position?: XmlVec3Immutable;
}

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

Represents <surface> element in Stormworks component definition data.

XML locations:

  • <definition> / <surfaces> / <surface>
  • <definition> / <buoyancy_surfaces> / <surface>

Parent: ComponentDefinitionImmutable

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

See ​

Properties ​

PropertyModifierType

orientation?

readonly

number

rotation?

readonly

number

shape?

readonly

number

trans_type?

readonly

number

flags?

readonly

number

is_reverse_normals?

readonly

boolean

is_two_sided?

readonly

boolean

position?

readonly

XmlVec3Immutable