Data types: Difference between revisions
Content added Content deleted
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...") |
Piranhaplant (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
* '''uint32''': A 32-bit unsigned integer |
* '''uint32''': A 32-bit unsigned integer |
||
* '''pointer16''': A 16-bit pointer |
* '''pointer16''': A 16-bit pointer |
||
* '''pointer32''': A |
* '''pointer32''': A 24-bit pointer padded to 32-bits |
||
* '''boolean''': A value of zero indicates false, any other value indicates true |
* '''boolean''': A value of zero indicates false, any other value indicates true |
||
* '''bit field''': Indicates that there are multiple different fields stored within certain bits of the value |
|||
* '''type[X]''': An array containing X elements of 'type' |
* '''type[X]''': An array containing X elements of 'type' |
||
* '''unused''': The data is unused and therefore has no type |
* '''unused''': The data is unused and therefore has no type |
||
Line 16: | Line 17: | ||
* '''x2''': Indicates that the value is premultiplied by 2. x3, x4, etc. mean the same thing but with a different multiplication factor |
* '''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 |
* '''bcd''': Indicates the the value is stored in binary-coded decimal |
||
* '''0-based''': Indicates that the value is stored as one less than it is described (for example, a value of 0 indicates that a monster has 1 health left) |
|||
== |
== Enumerations == |
||
=== Direction === |
=== Direction === |
Latest revision as of 21:54, 6 April 2024
Basic data types[edit]
- 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 24-bit pointer padded to 32-bits
- boolean: A value of zero indicates false, any other value indicates true
- bit field: Indicates that there are multiple different fields stored within certain bits of the value
- type[X]: An array containing X elements of 'type'
- unused: The data is unused and therefore has no type
Modifiers[edit]
- 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
- 0-based: Indicates that the value is stored as one less than it is described (for example, a value of 0 indicates that a monster has 1 health left)
Enumerations[edit]
Direction[edit]
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[edit]
Value | Value x2 | Description |
---|---|---|
0x0000 | 0x0000 | Zeke |
0x0001 | 0x0002 | Julie |