mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Added Workshop.Query.RankedByTrendDays
This commit is contained in:
parent
255e80b58d
commit
f64d0d15af
@ -35,6 +35,12 @@ public class Query : IDisposable
|
|||||||
|
|
||||||
public ulong? UserId { get; set; }
|
public ulong? UserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// If order is RankedByTrend, this value represents how many days to take
|
||||||
|
/// into account.
|
||||||
|
/// </summary>
|
||||||
|
public int RankedByTrendDays { get; set; }
|
||||||
|
|
||||||
public UserQueryType UserQueryType { get; set; } = UserQueryType.Published;
|
public UserQueryType UserQueryType { get; set; } = UserQueryType.Published;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -108,6 +114,9 @@ unsafe void RunInternal()
|
|||||||
if ( RequireTags.Count > 0 )
|
if ( RequireTags.Count > 0 )
|
||||||
workshop.ugc.SetMatchAnyTag( Handle, !RequireAllTags );
|
workshop.ugc.SetMatchAnyTag( Handle, !RequireAllTags );
|
||||||
|
|
||||||
|
if ( RankedByTrendDays > 0 )
|
||||||
|
workshop.ugc.SetRankedByTrendDays( Handle, (uint) RankedByTrendDays );
|
||||||
|
|
||||||
foreach ( var tag in ExcludeTags )
|
foreach ( var tag in ExcludeTags )
|
||||||
workshop.ugc.AddExcludedTag( Handle, tag );
|
workshop.ugc.AddExcludedTag( Handle, tag );
|
||||||
|
|
||||||
@ -214,6 +223,8 @@ public bool IsRunning
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public List<ulong> FileId { get; set; } = new List<ulong>();
|
public List<ulong> FileId { get; set; } = new List<ulong>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Don't call this in production!
|
/// Don't call this in production!
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user