mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-04 01:30:30 +03:00
Merge pull request #494 from kamyker/k9-on-ws-item-created
UgcEditor.SubmitAsync, on item created callback
This commit is contained in:
commit
c5c31280c1
@ -126,7 +126,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 );
|
||||
|
||||
@ -166,6 +166,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