Open SteamApps and SteamFriends for optional plugin usage

This commit is contained in:
JustArchi
2020-06-07 21:07:19 +02:00
parent e83c468fba
commit 5351e61687

View File

@@ -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);