Beispiel #1
0
        public Client(AudioManager audioManager, DCSPlayerRadioInfo playerRadioInfo)
        {
            AudioManager       = audioManager;
            ShortGuid          = Ciribob.DCS.SimpleRadio.Standalone.Common.Network.ShortGuid.NewGuid();
            DcsPlayerRadioInfo = playerRadioInfo;
            PlayerCoalitionLocationMetadata = new DCSPlayerSideInfo();
            SrsDataClient = new SrsDataClient(this);

            LogClientId = audioManager.LogClientId;

            ExternalAwacsModePassword = playerRadioInfo.radios.First().coalitionPassword;

            LastSent = 0;

            IsDataConnected           = false;
            ExternalAwacsModeSelected = false;

            LastSeenName = playerRadioInfo.name;
        }
Beispiel #2
0
        public Client(AudioManager audioManager, DCSPlayerRadioInfo playerRadioInfo)
        {
            AudioManager       = audioManager;
            ShortGuid          = Ciribob.DCS.SimpleRadio.Standalone.Common.Network.ShortGuid.NewGuid();
            DcsPlayerRadioInfo = playerRadioInfo;
            PlayerCoalitionLocationMetadata = new DCSPlayerSideInfo();
            SrsDataClient = new SrsDataClient(this);

            LogClientId = audioManager.LogClientId;

            ExternalAwacsModePassword = playerRadioInfo.radios.First().coalitionPassword;

            LastSent = 0;

            IsDataConnected           = false;
            ExternalAwacsModeSelected = false;

            LastSeenName = playerRadioInfo.name;

            _connectionMonitorTimer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(1)
            };
            _connectionMonitorTimer.Tick += MonitorConnectionStatus;
        }