r2mods/ilspy_dump/ror2_csproj/RoR2/EOSExtensions.cs

18 lines
761 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using Epic.OnlineServices;
using Epic.OnlineServices.Connect;
namespace RoR2;
public static class EOSExtensions
{
public static ProductUserId ToProductUserId(this EpicAccountId epicAccountId)
{
GetExternalAccountMappingsOptions getExternalAccountMappingsOptions = default(GetExternalAccountMappingsOptions);
getExternalAccountMappingsOptions.AccountIdType = ExternalAccountType.Epic;
getExternalAccountMappingsOptions.LocalUserId = EOSLoginManager.loggedInProductId;
getExternalAccountMappingsOptions.TargetExternalUserId = epicAccountId.ToString();
GetExternalAccountMappingsOptions options = getExternalAccountMappingsOptions;
return EOSPlatformManager.GetPlatformInterface().GetConnectInterface().GetExternalAccountMapping(ref options);
}
}