mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-25 08:49:22 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
28 lines
803 B
C#
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; }
|
|
}
|