If you intend so you’re able to feature Impressive Membership Characteristics along with your video game, and you also have to address unit programs, please call us during the eas-on-console- so you’re able to complement a production bundle.
Playing games along with your household members and you may appointment the new people on line is very important areas of of several on the web attributes. This new Epic On the web Characteristics (EOS) SDK uses the latest Members of the family Interface to recover the new family relations listing to have a great signed-for the member.
Friend directories are held by the on line service’s server, and can change during the an appointment because household members are additional otherwise got rid of or if perhaps family give or revoke consent for the game to make use of their information.
On effective conclusion off a friends number inquire, the fresh new Friends Screen brings a neighbor hood cache that is used because of the every other Friends Interface characteristics. In addition to SDK obtains notifications from the backend regarding the incidents you to definitely produce mutations of your friends checklist, instance a buddy being got rid of, an invitation getting approved otherwise a buddy revoking its say yes to provides its pointers employed by the game.
To utilize new Family members Screen, your product or service have to have Unbelievable Account Attributes (EAS) active, and really should receive associate accept access Loved ones List analysis. You might trigger EAS with the Developer Portal, otherwise discover more when asiГЎtico para o casamento you look at the Epic’s files.
Retrieving and you will Caching brand new Relatives List
To recover a great player’s members of the family list, you need an enthusiastic EOS_HFriends deal with. You can aquire this manage from Platform User interface setting, EOS_Platform_GetFriendsInterface . Loved ones Interface properties require that it manage to access your own logged-into the customer’s loved ones listing. It is vital to observe that EOS_Friends_QueryFriends will simply come back members of the family who have starred the video game at the least immediately after and it has provided the consent. Consent is given when a new player logs in to an application having fun with Unbelievable Membership Services (EAS) and you will allows EAS usage of its account analysis.
The first step when controling an excellent player’s family members list try to-name EOS_Friends_QueryFriends having a keen EOS_Friends_QueryFriendsOptions analysis build. This may download the essential up-to-go out sorts of good player’s nearest and dearest number towards local cache, next invoke your EOS_Friends_QueryFriends callback function up on completion.
Solution the Relatives Software manage, the newest EOS_Friends_QueryFriendsOptions framework, and your callback information to the form. Provided that the new EOS_HPlatform handle try ticking, brand new callback your given will run in the event the procedure closes.
If for example the callback runs, you should check the newest ResultCode realm of the new EOS_Friends_QueryFriendsCallbackInfo framework to choose if the procedure been successful or hit a brick wall. An emergency code implies that the fresh new SDK has cached the fresh new studies throughout the machine, which you can view anytime.
Exploring the Family members Record
- Dictate exactly how many family toward number by the calling EOS_Friends_GetFriendsCount .
- Access this new EOS_EpicAccountId of each and every pal from the getting in touch with EOS_Friends_GetFriendAtIndex .
New EOS_EpicAccountId came back by this function can be passed towards Associate Facts Program so you can access info in regards to the associate.
- Determine the present day condition of your social relationships from the getting in touch with EOS_Friends_GetStatus . So it mode returns certainly one of five viewpoints:
Relatives listing can change anytime, each other out-of into the-game events for example conference the fresh new participants, and you may from aside-of-games situations for instance the athlete changing the brand new account out-of a es do not need and cannot name EOS_Friends_QueryFriends more than once for every single log in of a person. But not, just after a player logs aside, people they know number have to be queried once again if they log in once again. To keep a beneficial game’s local copy of the members of the family listing upwards yet, join friend condition modify announcements.
Becoming a member of Pal Condition Reputation
New callback setting would be named when a buddy will get an update. The callback gets a keen EOS_Friends_OnFriendsUpdateInfo framework with the pursuing the parameters:
EOS_Friends_AddNotifyFriendsUpdate will return an enthusiastic EOS_NotificationId , that’s yet another deal with that really must be regularly unsubscribe out of announcements while they are no longer requisite. In case there is a deep failing, it will return a consequence code of EOS_INVALID_NOTIFICATIONID .
Managing the Friends Record
Help for Nintendo Option, PlayStation, and you can Xbox 360 console console systems is actually prepared. Assistance getting macOS, Linux, Ios & android is arranged.
You can allow the local member to send pal demands in order to almost every other pages on game, by contacting the latest EOS_Friends_SendInvite SDK API. To make usage of game UI functionality for accepting or rejecting people gotten pal invites, you are able to the EOS_Friends_AcceptInvite and you will EOS_Friends_RejectInvite SDK APIs respectively.