1
This commit is contained in:
35
Assets/BITKit/UnityPluginsSupport/Steamwork/ISteamService.cs
Normal file
35
Assets/BITKit/UnityPluginsSupport/Steamwork/ISteamService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user