private void OnItemCreated(SteamNative.CreateItemResult_t obj, bool Failed) { NeedToAgreeToWorkshopLegal = obj.UserNeedsToAcceptWorkshopLegalAgreement; CreateItem.Dispose(); if (obj.Result == SteamNative.Result.OK && !Failed) { Id = obj.PublishedFileId; PublishChanges(); return; } Error = "Error creating new file: " + obj.Result.ToString() + "(" + obj.PublishedFileId + ")"; Publishing = false; }
private void OnItemCreated(SteamNative.CreateItemResult_t obj, bool Failed) { NeedToAgreeToWorkshopLegal = obj.UserNeedsToAcceptWorkshopLegalAgreement; CreateItem.Dispose(); CreateItem = null; if (obj.Result == SteamNative.Result.OK && !Failed) { Error = null; Id = obj.PublishedFileId; PublishChanges(); return; } Error = $"Error creating new file: {obj.Result} ({obj.PublishedFileId})"; Publishing = false; OnChangesSubmitted?.Invoke((Result)obj.Result); }