Files
sbox-public/engine/Sandbox.Services/Api/Models/PackageInteraction.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

28 lines
803 B
C#

namespace Sandbox.Services;
/// <summary>
/// Describes a specific user's interaction with this package
/// </summary>
public struct PackageInteraction
{
public bool Favourite { get; set; }
public DateTimeOffset? FavouriteCreated { get; set; }
public int? Rating { get; set; }
public DateTimeOffset? RatingCreated { get; set; }
public bool Used { get; set; }
public DateTimeOffset? FirstUsed { get; set; }
public DateTimeOffset? LastUsed { get; set; }
public long Sessions { get; set; }
public long Seconds { get; set; }
/// <summary>
/// Total achievement score from this package
/// </summary>
public int AchievementScore { get; set; }
/// <summary>
/// Count of unlocked achievements (allows showing a % unlocked etc)
/// </summary>
public int AchievementCount { get; set; }
}