Unstable 1.8.4.0

This commit is contained in:
Markus Isberg
2025-03-12 12:56:27 +00:00
parent a4c3e868e4
commit a4a3427e4e
627 changed files with 29860 additions and 10018 deletions
@@ -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