Water.extm: Difference between revisions
→Water Map Data: Fix offsets |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 29: | Line 29: | ||
|2 | |2 | ||
|Unsigned Short | |Unsigned Short | ||
|<code>xAxisFlowRate 128= no flow | |<code>xAxisFlowRate</code> 128 = no flow | ||
|- | |- | ||
|0x04 | |0x04 | ||
|2 | |2 | ||
|Unsigned Short | |Unsigned Short | ||
|<code>zAxisFlowRate 128= no flow | |<code>zAxisFlowRate</code> 128 = no flow | ||
|- | |- | ||
| | |0x06 | ||
|1 | |1 | ||
|Unsigned Byte | |Unsigned Byte | ||
|<code>materialIndex + 3</code>. This may act as a checksum? | |<code>materialIndex + 3</code>. This may act as a checksum? | ||
|- | |- | ||
| | |0x07 | ||
|1 | |1 | ||
|Unsigned Byte | |Unsigned Byte | ||
| Line 47: | Line 47: | ||
|} | |} | ||
<code>height</code> and <code> | <code>height</code> and <code>flowRate</code> are stored as unsigned shorts, but seem to map to float values. These can be calculated by dividing by the max size of an unsigned short: | ||
<syntaxhighlight lang="c" line="line"> | <syntaxhighlight lang="c" line="line"> | ||