Edit specific item

This commit is contained in:
Garry Newman 2016-10-12 15:54:42 +01:00
parent aadac2339a
commit 14ebfbf0da
2 changed files with 10 additions and 0 deletions

View File

@ -159,6 +159,11 @@ public void VoteDown()
workshop.ugc.SetUserItemVote( Id, false );
}
public Editor Edit()
{
return workshop.EditItem( Id );
}
/// <summary>
/// Return a URL to view this item online

View File

@ -62,6 +62,11 @@ public Editor CreateItem( ItemType type )
return new Editor() { workshop = this, Type = type };
}
public Editor EditItem( ulong itemId )
{
return new Editor() { workshop = this, Id = itemId };
}
public enum Order
{
RankedByVote = 0,