Beispiel #1
0
 static CallbackHandler()
 {
     onInitCB = new OnInitDelegate(OnInitStatic);
     onExitCB = new OnExitDelegate(OnExitStatic);
     onIdleCB = new NativeAction(OnIdleStatic);
     onMovedToBackgroundCB = new NativeAction(OnMovedToBackgroundStatic);
     onMovedToForegroundCB = new NativeAction(OnMovedToForegroundStatic);
 }
Beispiel #2
0
 private static void FixArgsOrder(Panel_GenericProgressBar progressBarPanel,
                                  string name, float seconds, float minutes, float randomFailureThreshold,
                                  string audioNameShouldBeVoiceName, string voiceNameShouldBeAudioName,
                                  bool supressHeavyBreathing, bool skipRestoreInHands, OnExitDelegate del)
 {
     progressBarPanel.Launch(name, seconds, minutes, randomFailureThreshold,
                             voiceNameShouldBeAudioName, audioNameShouldBeVoiceName,
                             supressHeavyBreathing, skipRestoreInHands, del);
 }
Beispiel #3
0
 /// <summary>
 /// Disposeが呼び出されるときに呼び出されるdelegateを渡して使う。
 /// </summary>
 /// <param name="exitDelegate"></param>
 public WHEN_EXIT(OnExitDelegate exitDelegate)
 {
     onExit = exitDelegate;
 }
Beispiel #4
0
 /// <summary>
 /// Disposeが呼び出されるときに呼び出されるdelegateを渡して使う。
 /// </summary>
 /// <param name="exitDelegate"></param>
 public WHEN_EXIT(OnExitDelegate exitDelegate)
 {
     onExit = exitDelegate;
 }
Beispiel #5
0
        private static extern void App_registerDelegates(IntPtr app, OnInitDelegate onInitCB, OnExitDelegate onExitCB, NativeAction onIdleCB, NativeAction onMovedToBackgroundCB, NativeAction onMovedToForegroundCB
#if FULL_AOT_COMPILE
                                                         , IntPtr instanceHandle
#endif
                                                         );
Beispiel #6
0
 public override void Exit()
 {
     OnExitDelegate?.Invoke();
 }