benilla-re systems structs docs

DrawMapObjectGroupLiquid

function · terrain · orchestration

Address
0x6b4060 · 39 bytes, up to 0x6b4086
Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3)
Meaning
Stores the liquid parity flag and draws a group's liquid
Confidence
verified, proof one
Finding
terrain/groupdraw#group-liquid

Finding: Group liquid in terrain: map object draw

0x6b4060(group, flag) draws a group's liquid. The type is that of the first tile with liquid (0x6ba970); types 0, 4 and 8 draw water, 2, 3, 6 and 7 draw magma or slime, and the rest nothing. Water is drawn with blend 2 and no depth write, by the interior draw for a group without flags 0x48 and the exterior draw for the rest. The flag is the parity flag the flood stored; it is kept in 0xce269c.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.