Skip to content

Documentation / @sw-file-lib/xml / VehicleSchemas / MicroprocessorObject

Interface: MicroprocessorObject ​

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

Defined in: packages/xml/src/schemas/vehicle.ts:163

Represents <object> element in Stormworks vehicle data.

XML location: <vehicle> / <bodies> / <body> / <components> / <c> / <o> / <microprocessor_definition> / <group> / <components> / <c> / <object>

Parent: MicroprocessorComponent

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

See ​

Properties ​

PropertyType

id?

number

count?

number

ct?

number

dt?

number

l?

string

memory?

number

name?

string

offset?

number

on?

string

off?

string

m?

number

script?

string

u?

number

e?

string | TextValuePair

n?

string | TextValuePair

v?

string | TextValuePair

i?

number | TextValuePair

pos?

XmlVec2

inc?

MicroprocessorIn

in1?

MicroprocessorIn

in2?

MicroprocessorIn

in3?

MicroprocessorIn

in4?

MicroprocessorIn

in5?

MicroprocessorIn

in6?

MicroprocessorIn

in7?

MicroprocessorIn

in8?

MicroprocessorIn

in9?

MicroprocessorIn

in10?

MicroprocessorIn

in11?

MicroprocessorIn

in12?

MicroprocessorIn

in13?

MicroprocessorIn

in14?

MicroprocessorIn

in15?

MicroprocessorIn

in16?

MicroprocessorIn

in17?

MicroprocessorIn

in18?

MicroprocessorIn

in19?

MicroprocessorIn

in20?

MicroprocessorIn

in21?

MicroprocessorIn

in22?

MicroprocessorIn

in23?

MicroprocessorIn

in24?

MicroprocessorIn

in25?

MicroprocessorIn

in26?

MicroprocessorIn

in27?

MicroprocessorIn

in28?

MicroprocessorIn

in29?

MicroprocessorIn

in30?

MicroprocessorIn

in31?

MicroprocessorIn

in32?

MicroprocessorIn

inoff?

MicroprocessorIn

min?

TextValuePair

max?

TextValuePair

int?

TextValuePair

out1?

{ }

out2?

{ }

items?

MicroprocessorItem[]

kp?

TextValuePair

ki?

TextValuePair

kd?

TextValuePair

r?

TextValuePair