v1.7.7.0 (Winter Update 2024)

This commit is contained in:
Regalis11
2024-12-11 13:26:13 +02:00
parent 7d5b7a310a
commit f6349b2175
256 changed files with 4794 additions and 1653 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