Data types: Difference between revisions
Content deleted Content added
Piranhaplant (talk | contribs) No edit summary |
Piranhaplant (talk | contribs) No edit summary |
||
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 |
* '''bit field''': Indicates that there are multiple different fields stored within certain bits of the value |
Revision as of 00:25, 4 April 2024
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 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
- 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 |