private static void endActionPublish(IMyAsyncResult result, MyGuiScreenProgressAsync screen)
 {
     screen.CloseScreenNow();
     if (m_onPublishingFinished != null)
         m_onPublishingFinished(m_publishSuccess, m_publishResult, m_publishedFileId);
     m_publishSuccess = false;
     m_publishResult = Result.Fail;
     m_onPublishingFinished = null;
     m_asyncPublishScreen = null;
 }
Example #2
0
 private static void endActionPublishUGC(IMyAsyncResult iResult, MyGuiScreenProgressAsync screen)
 {
     screen.CloseScreenNow();
     PublishUGCResult result = (PublishUGCResult)iResult;
     result.CallbackOnFinished(result.PublishedFileId.HasValue, result.PublishedFileId);
 }