Ejemplo n.º 1
0
        public TackGameWindow(int _width, int _height, string _n, EngineDelegates.OnStart _strtFunc, EngineDelegates.OnUpdate _updtFunc, EngineDelegates.OnGUIRender _guiRendFunc, EngineDelegates.OnClose _onCloseFunc, TackConsole consoleHandle)
            : base(_width, _height, GraphicsMode.Default, _n)
        {
            onStartFunction     = _strtFunc;
            onUpdateFunction    = _updtFunc;
            onGUIRenderFunction = _guiRendFunc;
            onCloseFunction     = _onCloseFunc;

            mTackConsole = consoleHandle;

            ActiveInstance = this;
        }
Ejemplo n.º 2
0
        private static void NewGameWindow(int _w, int _h, int _u_s, int _f_s, string _n, EngineDelegates.OnStart _s, EngineDelegates.OnUpdate _u, EngineDelegates.OnGUIRender _r, EngineDelegates.OnClose _c, TackConsole consoleInstance)
        {
            if (currentWindow == null)
            {
                currentWindow = new TackGameWindow(_w, _h, _n, _s, _u, _r, _c, consoleInstance);

                TackConsole.EngineLog(EngineLogType.Message, "Successfully created new CustomGameWindow instance");
                return;
            }

            TackConsole.EngineLog(EngineLogType.Error, "There is already a CustomGameWindow instance running in this session");
        }
 public static void TackEngineRestartModuleCommand(string[] args)
 {
     if (args.Length == 2)
     {
         if (args[1] != "")
         {
             TackGameWindow.RestartModule(args[1], false);
         }
     }
     else if (args.Length == 3)
     {
         if (args[1] != "")
         {
             if (bool.TryParse(args[2], out bool res))
             {
                 TackGameWindow.RestartModule(args[1], res);
             }
         }
     }
 }