Example #1
0
 private void NativeCallback(IntPtr world, IntPtr ivs)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(world, ivs);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #2
0
 private void NativeCallback(IntPtr world, csbool duplicateForPIE, IntPtr replacementMap, IntPtr objectsToFixReferences)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(world, duplicateForPIE, replacementMap, objectsToFixReferences);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #3
0
 private void NativeCallback(IntPtr world, csbool sessionEnded, csbool cleanupResources)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(world, sessionEnded, cleanupResources);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #4
0
 private void NativeCallback(csbool simulating)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(simulating);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }