public static sccsVD4VE_LightNWithoutVr.sc_message_object.sc_message_object _console_menu(object _main_object)
        {
            try
            {
                _data00_IN = (sccsVD4VE_LightNWithoutVr.sc_message_object.sc_message_object)_main_object;

                int    _received_switch_in00  = _data00_IN._received_switch_in;
                int    _received_switch_out00 = _data00_IN._received_switch_out;
                int    _sending_switch_in00   = _data00_IN._sending_switch_in;
                int    _sending_switch_out00  = _data00_IN._sending_switch_out;
                int    _timeOut00             = _data00_IN._timeOut0;
                int    _ParentTaskThreadID00  = _data00_IN._ParentTaskThreadID0;
                int    _main_cpu_count00      = _data00_IN._main_cpu_count;
                string _passTest00            = _data00_IN._passTest;
                int    _welcomePackage00      = _data00_IN._welcomePackage;
                int    _current_menu00        = _data00_IN._current_menu;
                int    _last_current_menu00   = _data00_IN._last_current_menu;
                string _menuOption            = _data00_IN._menuOption;

                _someReceivedObject0 = _data00_IN;

                if (_received_switch_in00 == 0 &&
                    _received_switch_out00 == 0 &&
                    _sending_switch_in00 == 0 &&
                    _sending_switch_out00 == 0)
                {
                    if (_menuOption.ToLower() == "vr" ||
                        _menuOption.ToLower() == "std" ||
                        _menuOption.ToLower() == "standard" ||
                        _menuOption.ToLower() == "command" ||
                        _menuOption.ToLower() == "commands" ||
                        _menuOption.ToLower() == "credit" ||
                        _menuOption.ToLower() == "credits" ||
                        _menuOption.ToLower() == "singleplayer" ||
                        _menuOption.ToLower() == "multiplayer" ||
                        _menuOption.ToLower() == "single" ||
                        _menuOption.ToLower() == "multi")
                    {
                        if (_menuOption.ToLower() == "vr")
                        {
                            _someReceivedObject0._current_menu = 0;

                            _toReturnObject = _someReceivedObject0;
                            return(_toReturnObject);
                        }
                        else if (_menuOption.ToLower() == "standard" || _menuOption.ToLower() == "std")
                        {
                            _someReceivedObject0._current_menu = 1;
                            _toReturnObject = _someReceivedObject0;
                            return(_toReturnObject);
                        }
                    }
                    else
                    {
                        _someReceivedObject0._received_switch_in  = 0;
                        _someReceivedObject0._received_switch_out = 0;
                        _someReceivedObject0._sending_switch_in   = 0;
                        _someReceivedObject0._sending_switch_out  = 0;
                        _someReceivedObject0._welcomePackage      = 1;
                        _someReceivedObject0._work_done           = 0;
                        _someReceivedObject0._current_menu        = -1;
                    }
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 0 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 0 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }

                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 0 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 0)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
                else if (_received_switch_in00 == 1 &&
                         _received_switch_out00 == 1 &&
                         _sending_switch_in00 == 1 &&
                         _sending_switch_out00 == 1)
                {
                    _someReceivedObject0._received_switch_in  = 0;
                    _someReceivedObject0._received_switch_out = 0;
                    _someReceivedObject0._sending_switch_in   = 0;
                    _someReceivedObject0._sending_switch_out  = 0;
                    _toReturnObject = _someReceivedObject0;
                    return(_toReturnObject);
                }
            }
            catch (Exception ex)
            {
                MainWindow.MessageBox((IntPtr)0, "Fail 00" + ex.Message, "Oculus error", 0);
            }
            return(_toReturnObject);
        }
        public static sc_message_object.sc_message_object[] _console_menu(sc_message_object.sc_message_object[] _main_object)
        {
            try
            {
                for (int L0_IN = 0; L0_IN < _main_object.Length; L0_IN++)
                {
                    _data00_IN = _main_object[L0_IN];

                    int _work_doner            = _data00_IN._work_done;
                    int _received_switch_in00  = _data00_IN._received_switch_in;
                    int _received_switch_out00 = _data00_IN._received_switch_out;
                    int _sending_switch_in00   = _data00_IN._sending_switch_in;
                    int _sending_switch_out00  = _data00_IN._sending_switch_out;

                    int    _timeOut00            = _data00_IN._timeOut0;
                    int    _ParentTaskThreadID00 = _data00_IN._ParentTaskThreadID0;
                    int    _main_cpu_count00     = _data00_IN._main_cpu_count;
                    string _passTest00           = _data00_IN._passTest;
                    int    _welcomePackage00     = _data00_IN._welcomePackage;
                    int    _current_menu00       = _data00_IN._current_menu;
                    int    _last_current_menu00  = _data00_IN._last_current_menu;

                    if (_received_switch_in00 == 0 &&
                        _received_switch_out00 == 0 &&
                        _sending_switch_in00 == 0 &&
                        _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 0)
                    {
                        if (_welcomePackage00 == -1)
                        {
                            _main_object[L0_IN]._received_switch_in  = 0;
                            _main_object[L0_IN]._received_switch_out = 0;
                            _main_object[L0_IN]._sending_switch_in   = 0;
                            _main_object[L0_IN]._sending_switch_out  = 0;
                        }
                        else if (_welcomePackage00 == 0)
                        {
                            if (_passTest00.ToLower() == "nine" || _passTest00.ToLower() == "ninekorn" || _passTest00.ToLower() == "9")
                            {
                                _main_object[L0_IN]._received_switch_in  = 1;
                                _main_object[L0_IN]._received_switch_out = 1;
                                _main_object[L0_IN]._sending_switch_in   = 0;
                                _main_object[L0_IN]._sending_switch_out  = 0;
                                _main_object[L0_IN]._passTest            = _passTest00.ToLower();
                                _main_object[L0_IN]._welcomePackage      = 1;
                                _main_object[L0_IN]._work_done           = 1;
                                _main_object[L0_IN]._main_menu           = 0;
                            }
                            else
                            {
                                _main_object[L0_IN]._received_switch_in  = 1;
                                _main_object[L0_IN]._received_switch_out = 0;
                                _main_object[L0_IN]._sending_switch_in   = 0;
                                _main_object[L0_IN]._sending_switch_out  = 0;
                                _main_object[L0_IN]._welcomePackage      = 0;
                                _main_object[L0_IN]._work_done           = 1;

                                _main_object[L0_IN]._passTest = "";
                            }
                        }
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 1)
                    {
                        string _optionCommand = Console.ReadLine();

                        if (_optionCommand.ToLower() == "option" ||
                            _optionCommand.ToLower() == "command" ||
                            _optionCommand.ToLower() == "options" ||
                            _optionCommand.ToLower() == "commands")
                        {
                            _main_object[L0_IN]._received_switch_in  = 0;
                            _main_object[L0_IN]._received_switch_out = 0;
                            _main_object[L0_IN]._sending_switch_in   = 0;
                            _main_object[L0_IN]._sending_switch_out  = 0;
                        }
                        else
                        {
                            _main_object[L0_IN]._received_switch_in  = 0;
                            _main_object[L0_IN]._received_switch_out = 0;
                            _main_object[L0_IN]._sending_switch_in   = 0;
                            _main_object[L0_IN]._sending_switch_out  = 0;
                        }
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 1)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 1)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 1)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 0 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 1)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 0 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 1)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }

                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 0 &&
                             _sending_switch_out00 == 1)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 0)
                    {
                        _main_object[L0_IN]._received_switch_in  = 0;
                        _main_object[L0_IN]._received_switch_out = 0;
                        _main_object[L0_IN]._sending_switch_in   = 0;
                        _main_object[L0_IN]._sending_switch_out  = 0;
                    }
                    else if (_received_switch_in00 == 1 &&
                             _received_switch_out00 == 1 &&
                             _sending_switch_in00 == 1 &&
                             _sending_switch_out00 == 1)
                    {
                        if (_welcomePackage00 == 998)
                        {
                            MainWindow.init_directX_main_swtch = 2;
                        }
                        else if (_welcomePackage00 == 999)
                        {
                            MainWindow.init_vr_main_swtch = 2;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
            }
            return(_main_object);
        }