Skip to content

Documentation / @sw-file-lib/xml / XmlVec2

Interface: XmlVec2 ​

ts
interface XmlVec2 {
  x?: number;
  y?: number;
}

Defined in: packages/xml/src/schemas/common.ts:14

Represents elements with x and y attributes in Stormworks XML data.

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

See ​

Properties ​

PropertyType

x?

number

y?

number