mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Open SteamApps and SteamFriends for optional plugin usage
This commit is contained in:
@@ -86,10 +86,18 @@ namespace ArchiSteamFarm {
|
||||
[PublicAPI]
|
||||
public readonly Commands Commands;
|
||||
|
||||
[JsonIgnore]
|
||||
[PublicAPI]
|
||||
public readonly SteamApps SteamApps;
|
||||
|
||||
[JsonIgnore]
|
||||
[PublicAPI]
|
||||
public readonly SteamConfiguration SteamConfiguration;
|
||||
|
||||
[JsonIgnore]
|
||||
[PublicAPI]
|
||||
public readonly SteamFriends SteamFriends;
|
||||
|
||||
[JsonProperty]
|
||||
[PublicAPI]
|
||||
public uint GamesToRedeemInBackgroundCount => BotDatabase?.GamesToRedeemInBackgroundCount ?? 0;
|
||||
@@ -110,8 +118,6 @@ namespace ArchiSteamFarm {
|
||||
internal readonly BotDatabase BotDatabase;
|
||||
|
||||
internal readonly ConcurrentDictionary<uint, (EPaymentMethod PaymentMethod, DateTime TimeCreated, ulong AccessToken)> OwnedPackageIDs = new ConcurrentDictionary<uint, (EPaymentMethod PaymentMethod, DateTime TimeCreated, ulong AccessToken)>();
|
||||
internal readonly SteamApps SteamApps;
|
||||
internal readonly SteamFriends SteamFriends;
|
||||
|
||||
internal bool CanReceiveSteamCards => !IsAccountLimited && !IsAccountLocked;
|
||||
internal bool IsAccountLimited => AccountFlags.HasFlag(EAccountFlags.LimitedUser) || AccountFlags.HasFlag(EAccountFlags.LimitedUserForce);
|
||||
|
||||
Reference in New Issue
Block a user