mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Merge fix
This commit is contained in:
parent
f1dd4462f2
commit
784a1a1c2b
@ -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();
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user