Skip to content

Friends

Jakub Hubacek edited this page Oct 1, 2025 · 4 revisions

Friends Subsystem

Location: godot_epic_extension/src/Friends

Overview

The Friends subsystem provides querying of the user's friends list, retrieving cached friends list entries, and querying per-friend detailed user info via the UserInfo subsystem. This subsystem handles all social friend management functionality.


Supported Functions

Function Description
QueryFriends() Initiates EOS friends list query; requires authenticated user
GetFriendsList() Returns cached list; warns if not yet cached
GetFriendInfo(friend_id) Returns friend info from UserInfo cache if available; otherwise indicates to call QueryFriendInfo() first
QueryFriendInfo(friend_id) Uses UserInfo subsystem to query and cache a friend's info
QueryAllFriendsInfo() Iterates cached friends and requests UserInfo queries for each cached friend; returns false if friends list not cached

Notes & Limitations

  • Caching Dependency: GetFriendsList() requires that QueryFriends() has previously completed successfully; otherwise callers receive an empty list and a warning

EOS SDK Coverage

Mapping of EOS_Friends_ SDK functions* to implementation status:

EOS Function Status Notes
EOS_Friends_QueryFriends ✅ Yes Called in QueryFriends()
EOS_Friends_SendInvite ❌ No Not exposed by current public API
EOS_Friends_AcceptInvite ❌ No Not exposed
EOS_Friends_RejectInvite ❌ No Not exposed
EOS_Friends_GetFriendsCount ✅ Yes Used in update_friends_list() to get count
EOS_Friends_GetFriendAtIndex ✅ Yes Used to iterate and fetch each EpicAccountId
EOS_Friends_GetStatus ✅ Yes Used to determine friend relationship for each entry
EOS_Friends_AddNotifyFriendsUpdate ❌ No Notification registration not present in current code
EOS_Friends_RemoveNotifyFriendsUpdate ❌ No Not used

Clone this wiki locally