@@ -352,11 +352,21 @@ public static bool AllowedToInvite()
352
352
} ;
353
353
}
354
354
355
- public static bool CreatePortal ( ApiWorld apiWorld , ApiWorldInstance apiWorldInstance , Vector3 position , Vector3 forward , IntPtr errorReasonCallback )
355
+ public static bool CreatePortal ( ApiWorld apiWorld , ApiWorldInstance apiWorldInstance , Vector3 position , Vector3 forward , Action < string > errorReasonCallback )
356
356
{
357
357
return GetCreatePortalDelegate ( apiWorld , apiWorldInstance , position , forward , errorReasonCallback ) ;
358
358
}
359
359
360
+ public static void ShowErrorReason ( string error )
361
+ {
362
+ Utilities . ShowAlert ( "Error Creating Portal" , error ) ;
363
+ }
364
+
365
+ internal static IntPtr GetFunctionPointer ( string methodName )
366
+ {
367
+ return typeof ( Utilities ) . GetMethod ( methodName , System . Reflection . BindingFlags . Public | System . Reflection . BindingFlags . DeclaredOnly | System . Reflection . BindingFlags . Static ) ! . MethodHandle . GetFunctionPointer ( ) ;
368
+ }
369
+
360
370
public static void DeleteNotification ( Notification notification )
361
371
{
362
372
try
@@ -515,7 +525,7 @@ private delegate void SendNotificationDelegate(
515
525
NotificationDetails notificationDetails ,
516
526
Il2CppStructArray < byte > picDataIGuess = null ) ;
517
527
518
- private delegate bool CreatePortalDelegate ( ApiWorld apiWorld , ApiWorldInstance apiWorldInstance , Vector3 position , Vector3 forward , IntPtr errorReasonCallback ) ;
528
+ private delegate bool CreatePortalDelegate ( ApiWorld apiWorld , ApiWorldInstance apiWorldInstance , Vector3 position , Vector3 forward , Il2CppSystem . Action < string > errorReasonCallback = null ) ;
519
529
520
530
private delegate void DeleteNotificationDelegate ( Notification notification ) ;
521
531
0 commit comments