mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-26 05:28:07 +03:00
Ugc Editor, on item created callback
This commit is contained in:
parent
b4de0927f3
commit
8be43b4dde
@ -121,7 +121,7 @@ namespace Steamworks.Ugc
|
||||
return this;
|
||||
}
|
||||
|
||||
public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null )
|
||||
public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null, Action<PublishResult> onItemCreated = null )
|
||||
{
|
||||
var result = default( PublishResult );
|
||||
|
||||
@ -161,6 +161,9 @@ namespace Steamworks.Ugc
|
||||
fileId = created.Value.PublishedFileId;
|
||||
result.NeedsWorkshopAgreement = created.Value.UserNeedsToAcceptWorkshopLegalAgreement;
|
||||
result.FileId = fileId;
|
||||
|
||||
if ( onItemCreated != null )
|
||||
onItemCreated( result );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user