public Result CreateTimer(SWIGTYPE_p_TIMERELAPSED_CALLBACK timercbk, uint interval, bool autoreset, SWIGTYPE_p_void user, SWIGTYPE_p_p_Timer tmr) { Result ret = new Result(IronSightEnginePINVOKE.Engine_CreateTimer(swigCPtr, SWIGTYPE_p_TIMERELAPSED_CALLBACK.getCPtr(timercbk), interval, autoreset, SWIGTYPE_p_void.getCPtr(user), SWIGTYPE_p_p_Timer.getCPtr(tmr)), true); // if (IronSightEnginePINVOKE.SWIGPendingException.Pending) { throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve(); } if (IronSightEnginePINVOKE.SWIGPendingException.Pending) { throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_Timer obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }