Data types

From ZAMN Hacking
Revision as of 00:11, 4 April 2024 by Piranhaplant (talk | contribs) (Created page with "== Basic data types == * '''byte''': An 8-bit unsigned integer * '''uint16''': A 16-bit unsigned integer * '''int16''': A 16-bit two's compliment signed integer * '''uint32''': A 32-bit unsigned integer * '''pointer16''': A 16-bit pointer * '''pointer32''': A 32-bit pointer * '''boolean''': A value of zero indicates false, any other value indicates true * '''type[X]''': An array containing X elements of 'type' * '''unused''': The data is unused and therefore has no type...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Basic data types

  • byte: An 8-bit unsigned integer
  • uint16: A 16-bit unsigned integer
  • int16: A 16-bit two's compliment signed integer
  • uint32: A 32-bit unsigned integer
  • pointer16: A 16-bit pointer
  • pointer32: A 32-bit pointer
  • boolean: A value of zero indicates false, any other value indicates true
  • type[X]: An array containing X elements of 'type'
  • unused: The data is unused and therefore has no type

Modifiers

  • optional: Indicates that a value of 0 may be specified to indicate no value. Usually used with pointers
  • x2: Indicates that the value is premultiplied by 2. x3, x4, etc. mean the same thing but with a different multiplication factor
  • bcd: Indicates the the value is stored in binary-coded decimal

Enumeration types

Direction

Value Value x2 Description
0x0000 0x0000 None
0x0001 0x0002 Up
0x0002 0x0004 Up-right
0x0003 0x0006 Right
0x0004 0x0008 Down-right
0x0005 0x000A Down
0x0006 0x000C Down-left
0x0007 0x000E Left
0x0008 0x0010 Up-left

Character

Value Value x2 Description
0x0000 0x0000 Zeke
0x0001 0x0002 Julie