Water.extm: Difference between revisions
m Formatting |
→Water Map Data: Fix offsets |
||
| (One intermediate revision by one other user not shown) | |||
| Line 36: | Line 36: | ||
|<code>zAxisFlowRate</code> 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"> | ||