コード例 #1
0
        public QuestTest()
        {
            InitializeComponent();

            creoUpDown.SelectedIndex = DefaultCreoChannel;
            mainUpDown.SelectedIndex = DefaultMainChannel;
            cpuUpDown.SelectedIndex  = DefaultCpuChannel;

            _fusesSub    = new FusesSub(this);
            _gagarinSub  = new GagarinSub(this);
            _sputnikSub  = new SputnikSub(this);
            _creoDoorSub = new CreoDoorSub(this);
            _creoBoxSub  = new CreoBoxSub(this);
            _airSub      = new AirSub(this);
            _tankSub     = new TankSub(this);
            _manipSub    = new ManipSub(this);
            _cpuPanelSub = new CpuPanelSub(this);
            _argonBoxSub = new ArgonBoxSub(this);
            _consoleSub  = new ConsoleSub(this);

            _fusesSub.Run();
            _gagarinSub.Run();
            _sputnikSub.Run();
            _creoDoorPub.Run();
            _resetPub.Run();
            _creoDoorSub.Run();
            _creoBoxSub.Run();
            _acriLightPub.Run();
            _airSub.Run();
            _tankPub.Run();
            _manipSub.Run();
            _tankSub.Run();
            _cpuDoorPub.Run();
            _cpuPanelSub.Run();
            _cpuPanelPub.Run();
            _mainLightPub.Run();
            _argonBoxSub.Run();
            _consoleSub.Run();
            _sputnikPub.Run();

            Init();

            _audioMgr = new RoomAudioManager(creoMgr, mainMgr, cpuMgr);
            new Thread(() =>
            {
                Thread.CurrentThread.IsBackground = true;
                creoMgr.Run();
            }).Start();
            new Thread(() =>
            {
                Thread.CurrentThread.IsBackground = true;
                mainMgr.Run();
            }).Start();
            new Thread(() =>
            {
                Thread.CurrentThread.IsBackground = true;
                cpuMgr.Run();
            }).Start();
            _audioMgr.OnPlayRequest += _audioMgr_OnPlayRequest;
        }