36 lines
885 B
C#
36 lines
885 B
C#
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);
|
|
}
|
|
}
|
|
|