v1.3.0.1 (Epic Store release)

This commit is contained in:
Regalis11
2024-03-28 18:34:33 +02:00
parent 81ca8637be
commit 3791670c42
269 changed files with 13160 additions and 2966 deletions
@@ -0,0 +1,32 @@
using System.Threading.Tasks;
using Barotrauma.Networking;
namespace Barotrauma;
public static partial class EosInterface
{
public static class Ownership
{
private static Implementation? LoadedImplementation => Core.LoadedImplementation;
public static async Task<Option<Ownership.Token>> GetGameOwnershipToken(EpicAccountId selfEpicAccountId)
=> LoadedImplementation.IsInitialized()
? await LoadedImplementation.GetGameOwnershipToken(selfEpicAccountId)
: Option.None;
public readonly record struct Token(JsonWebToken Jwt)
{
public async Task<Option<EpicAccountId>> Verify()
=> LoadedImplementation.IsInitialized()
? await LoadedImplementation.VerifyGameOwnershipToken(this)
: Option.None;
}
}
internal abstract partial class Implementation
{
public abstract Task<Option<Ownership.Token>> GetGameOwnershipToken(EpicAccountId selfEpicAccountId);
public abstract Task<Option<EpicAccountId>> VerifyGameOwnershipToken(Ownership.Token token);
}
}