Added UgcEditor.WithChangeLog

This commit is contained in:
Garry Newman 2019-05-07 16:44:01 +01:00
parent 8560d94a18
commit 1dc804c7ac

View File

@ -45,6 +45,9 @@ internal Editor( WorkshopFileType filetype ) : this()
string MetaData;
public Editor WithMetaData( string t ) { this.MetaData = t; return this; }
string ChangeLog;
public Editor WithChangeLog( string t ) { this.ChangeLog = t; return this; }
string Language;
public Editor InLanguage( string t ) { this.Language = t; return this; }
@ -129,7 +132,10 @@ public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null )
result.Result = Steamworks.Result.Fail;
var updating = SteamUGC.Internal.SubmitItemUpdate( handle, "" );
if ( ChangeLog == null )
ChangeLog = "";
var updating = SteamUGC.Internal.SubmitItemUpdate( handle, ChangeLog );
while ( !updating.IsCompleted )
{