Page 1 of 1

Common defenitions

Posted: Fri Sep 30, 2016 6:15 am
by Neo_Kesha
Elemenary types:
Byte - 8-bit elementary variable. (Can be unsigned, signed by default)
Char - 8-bit character variable. Same as Byte, but threats as character, not a number.
Int16 - 16-bit variable. (Can be unsigned, signed by default)
Int32 - 32-bit variable. (Can be unsigned, signed by default)
Single - 32 bit variable with floating point. (Also calls just Float)
Double - 64 bit variable with floating point. Not used in Twinsanity\PS2. Listed here just to explain Single
Structures:
Vector2:
  1. Single X
  2. Single Y
Vector3:
  1. Single X
  2. Single Y
  3. Single Z
Vector4:
  1. Single X
  2. Single Y
  3. Single Z
  4. Single W
Array of <N> <Type> - Array of N variables of some Type, like "Array of 12 UInt16"
String:
  1. Int32 L (Length of string)
  2. Array of L Chars str