Skip to content

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

Interface: VoxelImmutable ​

ts
interface VoxelImmutable {
  readonly flags?: number;
  readonly physics_shape?: number;
  readonly buoy_pipes?: number;
  readonly position?: XmlVec3Immutable;
  readonly physics_shape_rotation?: XmlMat3Immutable;
}

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

Represents <voxel> element in Stormworks component definition data.

XML location: <definition> / <voxels> / <voxel>

Parent: ComponentDefinitionImmutable

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

See ​

Properties ​

PropertyModifierType

flags?

readonly

number

physics_shape?

readonly

number

buoy_pipes?

readonly

number

position?

readonly

XmlVec3Immutable

physics_shape_rotation?

readonly

XmlMat3Immutable