benilla-re systems structs docs

CGGameUI::HandlePacket

function · ui · orchestration

Address
0x48f690 · 1097 bytes, up to 0x48fad8
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Handles opcodes 0x2c2, 0x2c3, 0x2d2, 0x2e4 and 0x2f4 by a switch; 0x2f4, the weather, goes to 0x67baf0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
lighting/weather#weather-message

Finding: Weather message in lighting: weather

The weather message, 0x2f4, carries a u32 type, a float grade, a u32 sound and a byte; the byte at 0 means smooth. SetWeather ignores a type outside 0 to 3. A type that differs from the live one becomes pending. The grade clamps to [0, 1] and becomes the target; the ramp starts from the old target, not from the current grade. Without smooth the current grade jumps to the target and the ramp-now byte is set. The density target is the grade clamped to [0, 0.25], its start the ramp's start value clamped the same way, and both ramps restart now.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 27

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