FriendList
struct · net · 1832 bytes
- Meaning
- Holds the 50 friend slots, the 25 ignore guids, the pending name counts and the selections
- Confidence
- verified, proof one
- Finding
- net/friends#friend-list-object
Finding: Friend list object in net: friends
The object is cleared by 0x5aca10. Friend slot k is 32 bytes at +0x20·k: byte +0 online, byte +1 status flags (2 is away, 4 is busy), +4 the name string pointer, +8 the guid, +0x10 level, +0x14 class id, +0x18 area id. +0x640 counts friend names pending, +0x648 is the selected friend's guid, the ignore guids are 8 bytes each from +0x650, +0x718 counts ignore names pending and +0x720 is the selected ignore's guid. 0x5adc50 creates the object, registers handlers for opcodes 0x63, 0x65, 0x1fe, 0x67, 0x68 and 0x6b and the console command whois, and sets the who sort chain and counts. 0x5ae2d0 removes them, destroys the object and zeroes 0xc28168; the two run at world entry and teardown.
The derivation is in the doc.
Fields 6
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 1600 | FriendSlot[50] | m_friends | Holds the 50 friend slots | verified, proof one | net/friends#friend-list-object |
0x0640 | 4 | uint32_t | m_pendingFriendNames | Holds the number of friend names not yet in the name cache | verified, proof one | net/friends#friend-list-object |
0x0648 | 8 | uint64_t | m_selectedFriend | Holds the guid of the selected friend | verified, proof one | net/friends#friend-list-object |
0x0650 | 200 | uint64_t[25] | m_ignores | Holds the 25 ignored guids | verified, proof one | net/friends#friend-list-object |
0x0718 | 4 | uint32_t | m_pendingIgnoreNames | Holds the number of ignore names not yet in the name cache | verified, proof one | net/friends#friend-list-object |
0x0720 | 8 | uint64_t | m_selectedIgnore | Holds the guid of the selected ignore | verified, proof one | net/friends#friend-list-object |
Globals of this type
0xc28168s_friendList