Exemplo n.º 1
0
        public static void Shutdown()
        {
            if (!(GameDataManager.GameType == GameDataManager.GameTypes.DS1 ||
                  GameDataManager.GameType == GameDataManager.GameTypes.DS1R ||
                  GameDataManager.GameType == GameDataManager.GameTypes.DS3 ||
                  GameDataManager.GameType == GameDataManager.GameTypes.SDT))
            {
                return;
            }

            Main.WinForm.Invoke(new Action(() =>
            {
                ERRCHECK(result = _eventSystem.release());
                //foreach (var kvp in _eventProjects)
                //{
                //    ERRCHECK(result = kvp.Value.release());
                //}
            }));
        }
Exemplo n.º 2
0
        public static void Shutdown()
        {
            //Even if not initialized the event system is created and must be released.
            //if (!initialised)
            //    return;

            //if (!(GameDataManager.GameType == GameDataManager.GameTypes.DS1 ||
            //   GameDataManager.GameType == GameDataManager.GameTypes.DS1R ||
            //   GameDataManager.GameType == GameDataManager.GameTypes.DS3 ||
            //   GameDataManager.GameType == GameDataManager.GameTypes.SDT))
            //{
            //    return;
            //}

            Main.WinForm.Invoke(new Action(() =>
            {
                ERRCHECK(result = _eventSystem.release());
                //foreach (var kvp in _eventProjects)
                //{
                //    ERRCHECK(result = kvp.Value.release());
                //}
            }));
        }