Skip to content

Documentation / @sw-file-lib/xml / MicrocontrollerSchemas / Object

Interface: Object ​

ts
interface Object {
  id?: number;
  count?: number;
  ct?: number;
  dt?: number;
  c1?: number;
  c2?: number;
  l?: string;
  m?: number;
  memory?: number;
  is?: boolean;
  name?: string;
  offset?: number;
  on?: string;
  off?: string;
  c?: number;
  p?: boolean;
  p1?: number | boolean;
  p2?: number | boolean;
  p3?: number;
  script?: string;
  t?: number;
  u?: number;
  vp?: number;
  ip?: boolean;
  e?: string | TextValuePair;
  n?: string | TextValuePair;
  v?: string | TextValuePair;
  i?: number | TextValuePair;
  pos?: XmlVec2;
  inc?: In;
  in1?: In;
  in2?: In;
  in3?: In;
  in4?: In;
  in5?: In;
  in6?: In;
  in7?: In;
  in8?: In;
  in9?: In;
  in10?: In;
  in11?: In;
  in12?: In;
  in13?: In;
  in14?: In;
  in15?: In;
  in16?: In;
  in17?: In;
  in18?: In;
  in19?: In;
  in20?: In;
  in21?: In;
  in22?: In;
  in23?: In;
  in24?: In;
  in25?: In;
  in26?: In;
  in27?: In;
  in28?: In;
  in29?: In;
  in30?: In;
  in31?: In;
  in32?: In;
  inoff?: In;
  out1?: Out;
  out2?: Out;
  items?: Item[];
  kp?: TextValuePair;
  ki?: TextValuePair;
  kd?: TextValuePair;
  r?: TextValuePair;
  min?: TextValuePair;
  max?: TextValuePair;
  int?: TextValuePair;
}

Defined in: packages/xml/src/schemas/microcontroller.ts:221

Represents <object> element or <c*> element in Stormworks microcontroller data.

XML locations:

  • <microprocessor> / <group> / <components> / <c> / <object>
  • <microprocessor> / <group> / <component_states> / <c*>

Parents: Component or Group

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

See ​

Properties ​

PropertyType

id?

number

count?

number

ct?

number

dt?

number

c1?

number

c2?

number

l?

string

m?

number

memory?

number

is?

boolean

name?

string

offset?

number

on?

string

off?

string

c?

number

p?

boolean

p1?

number | boolean

p2?

number | boolean

p3?

number

script?

string

t?

number

u?

number

vp?

number

ip?

boolean

e?

string | TextValuePair

n?

string | TextValuePair

v?

string | TextValuePair

i?

number | TextValuePair

pos?

XmlVec2

inc?

In

in1?

In

in2?

In

in3?

In

in4?

In

in5?

In

in6?

In

in7?

In

in8?

In

in9?

In

in10?

In

in11?

In

in12?

In

in13?

In

in14?

In

in15?

In

in16?

In

in17?

In

in18?

In

in19?

In

in20?

In

in21?

In

in22?

In

in23?

In

in24?

In

in25?

In

in26?

In

in27?

In

in28?

In

in29?

In

in30?

In

in31?

In

in32?

In

inoff?

In

out1?

Out

out2?

Out

items?

Item[]

kp?

TextValuePair

ki?

TextValuePair

kd?

TextValuePair

r?

TextValuePair

min?

TextValuePair

max?

TextValuePair

int?

TextValuePair