Program so you’re able to access relatives checklist, or even add otherwise lose almost every other users

If you plan in order to put Impressive Account Properties along with your video game, therefore must address system networks, excite contact us at eas-on-console- so you’re able to coordinate a production bundle.

Winning contests along with your family relations and you will conference this new players online is actually essential components of of numerous on the internet properties. The brand new Epic On the internet Qualities (EOS) SDK spends the fresh Loved ones User interface so you can access the brand new loved ones list to own a signed-inside player.

Buddy listings is stored by on the web service’s machine, and certainly will changes throughout a consultation given that household members is extra otherwise got rid of or if perhaps family relations grant otherwise revoke consent for the online game to make use of the guidance.

Upon effective achievement of a family number query, the Relatives Screen produces a location cache that is used by the any Family unit members Software features. Plus the SDK receives announcements regarding backend in the situations one end in mutations of one’s loved ones list, such a pal are got rid of, an invitation getting recognized or a buddy revoking their accept keeps their suggestions employed by the game.

To use new Nearest and dearest Software, your product or service need to have Unbelievable Membership Qualities (EAS) energetic, and really should get user accept to availability Family Number studies. You can activate EAS into Designer Portal, or get the full story inside Epic’s paperwork.

Retrieving and you will Caching the new Relatives Number

So you can retrieve a player’s loved ones record, you will need an EOS_HFriends handle. You can aquire it deal with from System User interface means, EOS_Platform_GetFriendsInterface . Loved ones Software characteristics need it manage to access their signed-during the owner’s loved ones number. It is very important observe that EOS_Friends_QueryFriends will only return loved ones that played the game from the minimum after and has now considering their concur. Concur is provided with whenever a person logs in to an application playing with Unbelievable Account Properties (EAS) and you can allows EAS accessibility their account data.

The initial step in dealing with a great player’s household members listing is to call EOS_Friends_QueryFriends with an EOS_Friends_QueryFriendsOptions research design. This can download more upwards-to-go out brand of a player’s nearest and dearest checklist with the local cache, following invoke the EOS_Friends_QueryFriends callback function through to completion.

Ticket the brand new Household members Software manage, the fresh new EOS_Friends_QueryFriendsOptions framework, along with your callback information towards means. So long as new EOS_HPlatform handle is actually ticking, this new callback you provided will run when the procedure comes to an end.

In case the callback performs, you can examine new ResultCode realm of the fresh EOS_Friends_QueryFriendsCallbackInfo framework to choose perhaps the procedure succeeded or hit a brick wall. An endurance password demonstrates that the newest SDK have cached this new studies about servers, which you can look at any time.

Exploring the Members of the family Listing

  • Dictate the number of members of the family to your checklist by getting in touch with EOS_Friends_GetFriendsCount .
  • Access the brand new EOS_EpicAccountId of any friend by the contacting EOS_Friends_GetFriendAtIndex .

New EOS_EpicAccountId came back from this mode is passed on Representative Facts Interface in order to access addiitional information regarding the user.

  • Influence the modern standing of social relationship by getting in touch with EOS_Friends_GetStatus . That it mode efficiency certainly five thinking:

Relatives listing can alter at any time, one another from within the-video game events including appointment the fresh members, and you may from out-of-online game incidents like the pro modifying the membership from a good parece do not need and cannot phone call EOS_Friends_QueryFriends over and over again for each and every sign on regarding a player. But not, once a person logs out, people they know listing have to be queried again once they log on again. To save good game’s regional duplicate of the family unit members list upwards to date, subscribe to buddy condition update notifications.

Subscribing to Friend Updates Condition

The new callback means might be called when a buddy becomes a keen modify. The brand new callback receives an EOS_Friends_OnFriendsUpdateInfo design towards pursuing the parameters:

EOS_Friends_AddNotifyFriendsUpdate often return an EOS_NotificationId , which is a separate handle that must definitely be accustomed mulheres Libaneses unsubscribe away from announcements if they are no more expected. If there is failing, it does come back an end result password of EOS_INVALID_NOTIFICATIONID .

Controlling the Members of the family Listing

Assistance to own Nintendo Switch, PlayStation, and you will Xbox 360 system programs are organized. Assistance getting macOS, Linux, Android and ios are arranged.

You could allow the local representative to transmit friend needs so you’re able to other pages in the game, by the contacting the new EOS_Friends_SendInvite SDK API. To implement online game UI possibilities getting recognizing or rejecting one acquired pal invites, you need this new EOS_Friends_AcceptInvite and you can EOS_Friends_RejectInvite SDK APIs respectively.

Uso de cookies

Este sitio web utiliza cookies para que usted tenga la mejor experiencia de usuario. Si continúa navegando está dando su consentimiento para la aceptación de las mencionadas cookies y la aceptación de nuestra política de cookies, pinche el enlace para mayor información.plugin cookies

ACEPTAR
Aviso de cookies