This commit is contained in:
CortexCore
2024-11-03 16:42:23 +08:00
commit b125894cc3
5904 changed files with 1070129 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using UnityEngine;
using Steamworks;
using Cysharp.Threading.Tasks;
namespace BITKit.Steamwork
{
/// <summary>
/// Steam服务接口
/// </summary>
public interface ISteamService
{
/// <summary>
/// SteamId
/// </summary>
int Id { get; }
/// <summary>
/// Steam64位Id
/// </summary>
ulong SteamId { get; }
/// <summary>
/// Steam用户名
/// </summary>
string Name { get; }
/// <summary>
/// Steam客户端是否已经初始化
/// </summary>
bool IsInitialized { get; }
UniTask<Texture2D> GetAvatarAsync(CancellationToken token);
UniTask<ISteamInventoryItemDef[]> GetInventoryItemDefsAsync(CancellationToken token);
}
}