예제 #1
0
 internal MacOSGameHost(string gameName, bool bindIPC = false)
     : base(gameName, bindIPC)
 {
     Window = new MacOSGameWindow();
     Window.WindowStateChanged += (sender, e) =>
     {
         if (Window.WindowState != OpenTK.WindowState.Minimized)
         {
             OnActivated();
         }
         else
         {
             OnDeactivated();
         }
     };
 }
예제 #2
0
 internal MacOSGameHost(string gameName, bool bindIPC = false, ToolkitOptions toolkitOptions = default)
     : base(gameName, bindIPC, toolkitOptions)
 {
     Window = new MacOSGameWindow();
     Window.WindowStateChanged += (sender, e) =>
     {
         if (Window.WindowState != WindowState.Minimized)
         {
             OnActivated();
         }
         else
         {
             OnDeactivated();
         }
     };
 }
예제 #3
0
 protected override void SetupForRun()
 {
     base.SetupForRun();
     Window = new MacOSGameWindow();
 }
예제 #4
0
 internal MacOSGameHost(string gameName, bool bindIPC = false, ToolkitOptions toolkitOptions = default)
     : base(gameName, bindIPC, toolkitOptions)
 {
     Window = new MacOSGameWindow();
 }