mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-26 13:38:06 +03:00
35 lines
838 B
C#
35 lines
838 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace Steamworks
|
|
{
|
|
[TestClass]
|
|
[DeploymentItem( "steam_api64.dll" )]
|
|
public class UserStatsTest
|
|
{
|
|
[TestMethod]
|
|
public void AchievementList()
|
|
{
|
|
foreach ( var a in SteamUserStats.Achievements )
|
|
{
|
|
Console.WriteLine( $"{a.Identifier}" );
|
|
Console.WriteLine( $" a.State: {a.State}" );
|
|
Console.WriteLine( $" a.UnlockTime: {a.UnlockTime}" );
|
|
Console.WriteLine( $" a.Name: {a.Name}" );
|
|
Console.WriteLine( $" a.Description: {a.Description}" );
|
|
Console.WriteLine( $" a.GlobalUnlockedPercentage: {a.GlobalUnlockedPercentage}" );
|
|
|
|
var icon = a.GetIcon();
|
|
|
|
Console.WriteLine( $" a.Icon: {icon}" );
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|