AsyncOpEx.generated.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /// <summary>
  7. /// Object you may use to check on the results of an asynchronous operation. Contains uninitialized data until IsComplete
  8. /// returns true.
  9. /// </summary>
  10. [ShowInInspector]
  11. public partial class AsyncOp : ScriptObject
  12. {
  13. private AsyncOp(bool __dummy0) { }
  14. protected AsyncOp() { }
  15. /// <summary>Returns true if the async operation has completed.</summary>
  16. [ShowInInspector]
  17. public bool IsComplete
  18. {
  19. get { return Internal_isComplete(mCachedPtr); }
  20. }
  21. /// <summary>Retrieves the value returned by the async operation. Only valid if IsComplete returns true.</summary>
  22. [ShowInInspector]
  23. public object ReturnValue
  24. {
  25. get { return Internal_getReturnValue(mCachedPtr); }
  26. }
  27. /// <summary>Blocks the caller thread until the AsyncOp completes.</summary>
  28. public void BlockUntilComplete()
  29. {
  30. Internal_blockUntilComplete(mCachedPtr);
  31. }
  32. [MethodImpl(MethodImplOptions.InternalCall)]
  33. private static extern bool Internal_isComplete(IntPtr thisPtr);
  34. [MethodImpl(MethodImplOptions.InternalCall)]
  35. private static extern object Internal_getReturnValue(IntPtr thisPtr);
  36. [MethodImpl(MethodImplOptions.InternalCall)]
  37. private static extern void Internal_blockUntilComplete(IntPtr thisPtr);
  38. }
  39. }