Example #1
0
 // Token: 0x0600003A RID: 58 RVA: 0x0000A400 File Offset: 0x00008600
 public void Set(SteamAPICall_t hAPICall, CallResult <T> .APIDispatchDelegate func = null)
 {
     if (func != null)
     {
         m_Func = func;
     }
     if (m_Func == null)
     {
         throw new Exception("CallResult function was null, you must either set it in the CallResult Constructor or via Set()");
     }
     if (m_hAPICall != SteamAPICall_t.Invalid)
     {
         NativeMethods.SteamAPI_UnregisterCallResult(m_pCCallbackBase.AddrOfPinnedObject(), (ulong)m_hAPICall);
     }
     m_hAPICall = hAPICall;
     if (hAPICall != SteamAPICall_t.Invalid)
     {
         NativeMethods.SteamAPI_RegisterCallResult(m_pCCallbackBase.AddrOfPinnedObject(), (ulong)hAPICall);
     }
 }
Example #2
0
 // Token: 0x06000037 RID: 55 RVA: 0x0000223F File Offset: 0x0000043F
 public CallResult(CallResult <T> .APIDispatchDelegate func = null)
 {
     m_Func = func;
     BuildCCallbackBase();
 }
Example #3
0
 // Token: 0x06000036 RID: 54 RVA: 0x00002237 File Offset: 0x00000437
 public static CallResult <T> Create(CallResult <T> .APIDispatchDelegate func = null)
 {
     return(new CallResult <T>(func));
 }