mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +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.
|
/// 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.
|
/// Your item won't actually be created until you call Publish() on the object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Editor CreateItem( ItemType type )
|
public Editor CreateItem( ItemType type = ItemType.Community )
|
||||||
{
|
{
|
||||||
return CreateItem(this.steamworks.AppId, type);
|
return CreateItem(this.steamworks.AppId, type);
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ public Editor CreateItem( ItemType type )
|
|||||||
/// Your item will be published to the provided appId.
|
/// Your item will be published to the provided appId.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>You need to add app publish permissions for cross app uploading to work.</remarks>
|
/// <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 };
|
return new Editor() { workshop = this, WorkshopUploadAppId = workshopUploadAppId, Type = type };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user