mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Modified, Created
This commit is contained in:
parent
c5f22d6470
commit
2fc391b474
@ -25,6 +25,8 @@ public class Item
|
|||||||
public string Title { get; private set; }
|
public string Title { get; private set; }
|
||||||
public uint VotesDown { get; private set; }
|
public uint VotesDown { get; private set; }
|
||||||
public uint VotesUp { get; private set; }
|
public uint VotesUp { get; private set; }
|
||||||
|
public DateTime Modified { get; private set; }
|
||||||
|
public DateTime Created { get; private set; }
|
||||||
|
|
||||||
internal static Item From( SteamUGCDetails_t details, Workshop workshop )
|
internal static Item From( SteamUGCDetails_t details, Workshop workshop )
|
||||||
{
|
{
|
||||||
@ -39,6 +41,8 @@ internal static Item From( SteamUGCDetails_t details, Workshop workshop )
|
|||||||
item.Score = details.m_flScore;
|
item.Score = details.m_flScore;
|
||||||
item.VotesUp = details.m_unVotesUp;
|
item.VotesUp = details.m_unVotesUp;
|
||||||
item.VotesDown = details.m_unVotesDown;
|
item.VotesDown = details.m_unVotesDown;
|
||||||
|
item.Modified = new DateTime( details.m_rtimeUpdated );
|
||||||
|
item.Created = new DateTime( details.m_rtimeCreated );
|
||||||
item.UpdateState();
|
item.UpdateState();
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
|
Loading…
Reference in New Issue
Block a user