mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 05:35:35 +03:00
Default workshop items to ItemType.Community (most common)
This commit is contained in:
parent
617183184d
commit
55d3fd6b75
@ -158,7 +158,7 @@ public Query CreateQuery()
|
||||
/// Create a new Editor object with the intention of creating a new item.
|
||||
/// Your item won't actually be created until you call Publish() on the object.
|
||||
/// </summary>
|
||||
public Editor CreateItem( ItemType type )
|
||||
public Editor CreateItem( ItemType type = ItemType.Community )
|
||||
{
|
||||
return CreateItem(this.steamworks.AppId, type);
|
||||
}
|
||||
@ -169,7 +169,7 @@ public Editor CreateItem( ItemType type )
|
||||
/// Your item will be published to the provided appId.
|
||||
/// </summary>
|
||||
/// <remarks>You need to add app publish permissions for cross app uploading to work.</remarks>
|
||||
public Editor CreateItem( uint workshopUploadAppId, ItemType type )
|
||||
public Editor CreateItem( uint workshopUploadAppId, ItemType type = ItemType.Community )
|
||||
{
|
||||
return new Editor() { workshop = this, WorkshopUploadAppId = workshopUploadAppId, Type = type };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user