Example #1
0
 private void NativeCallback(ref FName moduleName, EModuleChangeReason reason)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(moduleName, reason);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #2
0
 private void NativeCallback(ref FName package, csbool canProcessNewlyLoadedObjects)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(package, canProcessNewlyLoadedObjects);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #3
0
 private void NativeCallback(csbool connected, int userId, int controllerIndex)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(connected, userId, controllerIndex);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #4
0
 private void NativeCallback(IntPtr savedObject)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(GCHelper.Find(savedObject));
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #5
0
 private void NativeCallback(IntPtr objectBeingModified)
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt(GCHelper.Find(objectBeingModified));
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #6
0
 private void NativeCallback()
 {
     try
     {
         var evnt = managed.Delegate;
         if (evnt != null)
         {
             evnt();
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }
Example #7
0
 private void NativeCallback(ref FScriptArray mapName)
 {
     try
     {
         string mapNameStr = FStringMarshaler.FromArray(mapName, false);
         var    evnt       = managed.Delegate;
         if (evnt != null)
         {
             evnt(mapNameStr);
         }
     }
     catch (Exception e)
     {
         FMessage.LogDelegateException(e);
     }
 }