using System.Application.Models; using System.Collections.Generic; namespace System.Application.Services { public interface ISteamworksLocalApiService { protected const string TAG = "SteamworksLocalApiS"; public static ISteamworksLocalApiService Instance => DI.Get(); /// /// 当前平台是否支持 /// bool IsSupported { get; } bool Initialize(); bool Initialize(int appid); long GetSteamId64(); bool OwnsApps(uint appid); List OwnsApps(List apps); string GetAppData(uint appid, string key); bool IsSteamChinaLauncher(); bool IsAppInstalled(uint appid); string GetAppInstallDir(uint appid); string GetIPCountry(); string GetCurrentGameLanguage(); string GetAvailableGameLanguages(); bool GetStatValue(string name, out int value); bool GetStatValue(string name, out float value); bool GetAchievementState(string name, out bool isAchieved); bool GetAchievementAndUnlockTime(string name, out bool isAchieved, out long unlockTime); bool GetAchievementAchievedPercent(string name, out float percent); void AddUserStatsReceivedCallback(Action action); bool RequestCurrentStats(); bool ResetAllStats(bool achievementsToo); bool SetAchievement(string name, bool state); bool SetStatValue(string name, int value); bool SetStatValue(string name, float value); bool StoreStats(); void RequestGlobalAchievementPercentages(); void RunCallbacks(bool server); public interface IUserStatsReceived { ulong GameId { get; } int Result { get; } } } #if DEBUG [Obsolete("use ISteamworksLocalApiService", true)] public class SteamworksApiService { } #endif }