Unstable 1.8.4.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
@@ -230,6 +230,18 @@ namespace Barotrauma.Steam
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static bool TryGetAllAvailableAchievements(out List<Steamworks.Data.Achievement> achievements)
|
||||
{
|
||||
if (!IsInitialized || !Steamworks.SteamClient.IsValid)
|
||||
{
|
||||
achievements = null;
|
||||
return false;
|
||||
}
|
||||
achievements = Steamworks.SteamUserStats.Achievements.ToList();
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void Update(float deltaTime)
|
||||
{
|
||||
//this should be run even if SteamManager is uninitialized
|
||||
|
||||
@@ -130,7 +130,8 @@ namespace Barotrauma.Steam
|
||||
.WithFileId(
|
||||
ids
|
||||
.Select(id => (Steamworks.Data.PublishedFileId)id)
|
||||
.ToArray()));
|
||||
.ToArray())
|
||||
.WithChildren(true));
|
||||
ids.Clear();
|
||||
|
||||
// Immediately clear the current batch so the next request starts a new one
|
||||
|
||||
Reference in New Issue
Block a user