Beispiel #1
0
 private void SubmitUpdateResult(Steamworks.SubmitItemUpdateResult_t callback, bool bIOFailure)
 {
     Console.WriteLine("Upload complete!");
     if (callback.m_eResult == EResult.k_EResultOK)
     {
         this.currentTitleMessage = "Update Complete!";
         this.currentBodyMessage  = "Upload completed successfully";
     }
     else
     {
         this.currentTitleMessage = "Update Failed";
         this.currentBodyMessage  = "Error code: " + (object)callback.m_eResult;
     }
     this.isInUpload         = false;
     this.showLoadingSpinner = false;
 }
    void OnItemSubmitted(SubmitItemUpdateResult_t callback, bool ioFailure)
    {
        if (ioFailure)
        {
            statusText.text = "Error: I/O Failure! :(";
            return;
        }

        switch(callback.m_eResult)
        {
            case EResult.k_EResultOK:
                statusText.text = "SUCCESS! Item submitted! :D :D :D";
                currentHandle = UGCUpdateHandle_t.Invalid;
                break;
        }
    }
Beispiel #3
0
    void OnSubmitItemUpdateResult(SubmitItemUpdateResult_t pCallback, bool bIOFailure)
    {

        Debug.Log("[" + SubmitItemUpdateResult_t.k_iCallback + " - SubmitItemUpdateResult_t] - " + pCallback.m_eResult + " -- " + pCallback.m_bUserNeedsToAcceptWorkshopLegalAgreement);
    }
Beispiel #4
0
	private void OnSubmitItemUpdateResult(SubmitItemUpdateResult_t pCallback, bool bIOFailed) {
		m_State = EState.Complete;

		print("OnSubmitItemUpdateResult - m_eResult: " + pCallback.m_eResult + " | m_bUserNeedsToAcceptWorkshopLegalAgreement: " + pCallback.m_bUserNeedsToAcceptWorkshopLegalAgreement);
		
		if (bIOFailed) {
			//ESteamAPICallFailure failureReason = SteamUtils.GetAPICallFailureReason(m_CrateItemResult.Handle);
			//Debug.LogError("OnSubmitItemUpdateResult bIOFailed = true. Reason: " + failureReason);
			m_State = EState.Failed;
			return;
		}

		if (pCallback.m_eResult != EResult.k_EResultOK) {
			Debug.LogError("OnSubmitItemUpdateResult m_eResult != k_EResultOK");
			m_State = EState.Failed;
			return;
		}

		m_tmpNeedsToAcceptTOS = pCallback.m_bUserNeedsToAcceptWorkshopLegalAgreement;

	}