Merge fix

This commit is contained in:
Garry Newman 2016-10-26 09:54:40 +01:00
parent f1dd4462f2
commit 784a1a1c2b
2 changed files with 5 additions and 21 deletions

View File

@ -50,17 +50,6 @@ internal static Item From( SteamNative.SteamUGCDetails_t details, Workshop works
return item;
}
internal static Item FromId( ulong id, Workshop workshop )
{
var item = new Item();
item.workshop = workshop;
item.Id = id;
item.UpdateState();
return item;
}
public void Download( bool highPriority = true )
{
UpdateState();

View File

@ -59,21 +59,16 @@ public Query CreateQuery()
};
}
/// <summary>
/// Returns a class representing this ItemId. We don't query
/// item name, description etc. We don't verify that item exists.
/// We don't verify that this item belongs to your app.
/// </summary>
public Item ItemHandle( ulong ItemId )
{
return Item.FromId( ItemId, this );
}
public Editor CreateItem( ItemType type )
{
return new Editor() { workshop = this, Type = type };
}
/// <summary>
/// Returns a class representing this ItemId. We don't query
/// item name, description etc. We don't verify that item exists.
/// We don't verify that this item belongs to your app.
/// </summary>
public Editor EditItem( ulong itemId )
{
return new Editor() { workshop = this, Id = itemId };