benilla-re systems structs docs

ChatChannel

struct · ui · 160 bytes

Meaning
Holds one joined channel: slot number, name, member list, ChatChannels id, instance number and state
Confidence
verified, proof one
Finding
ui/chatchannels#joined-channel-slots

Finding: Joined channel slots in ui: chat channels

The client keeps up to ten joined channels in an array of 0xa0-byte slots (count 0xb4fe00, base 0xb4fe04): +0x00 the slot's own 1-based position, 0 while the slot is free; +0x04 the channel's name (128 bytes); +0x84 the member list header; +0x94 the ChatChannels id, 0 for a custom channel; +0x98 the instance number from the join notice; +0x9c the state: 0 confirmed by the server, 1 waiting for the server, 2 renamed and waiting, 3 suspended. A free slot is reused before the array grows.

The derivation is in the doc.

Fields 7

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_numberHolds the slot's 1-based position, 0 while the slot is freeverified, proof oneui/chatchannels#joined-channel-slots
0x0004128char[128]m_nameHolds the channel's name, the composed zone name for a zone channelverified, proof oneui/chatchannels#joined-channel-slots
0x008412uint32_t[3]m_membersHolds the member list: link offset and terminator link, the channel list message's membersverified, proof oneui/chatchannels#joined-channel-slots
0x00901uint8_tm_listFlagsHolds the flag byte of the last channel list message; with 0x02 a member without 0x04 prints #verified, proof oneui/chatchannels#channel-list-message
0x00944uint32_tm_channelIdHolds the ChatChannels id, 0 for a custom channelverified, proof oneui/chatchannels#joined-channel-slots
0x00984uint32_tm_instanceHolds the instance number from the join notice, not cleared when the slot is reusedverified, proof oneui/chatchannels#joined-channel-slots
0x009c4uint32_tm_stateHolds 0 confirmed, 1 waiting, 2 renamed and waiting, 3 suspendedverified, proof oneui/chatchannels#confirming-renaming-and-dropping

Globals of this type