Ejemplo n.º 1
0
        //private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e)
        //{
        //    var selectedAction = ((HackTaskDisplayAdapter) listView.Adapter)._items[e.Position];

        //    if (HackingNavigation.CurrentAction == null || !Object.ReferenceEquals(selectedAction, HackingNavigation.CurrentAction))
        //        selectedAction.Select();
        //    else selectedAction.Execute();

        //    UpdateListView();
        //}

        protected override async void OnResume()
        {
            await base.DoOnResumeAsync(Task.Delay(500), AutoRestart : false);

            ContinuousLogger.TrueActivate(StopToken);
            LoadHackingClassifier();
            //InitHackingOpportunity();
        }
Ejemplo n.º 2
0
        protected override async void OnResume()
        {
            await base.DoOnResumeAsync(Task.Delay(500), AutoRestart : false);

            LoadHackingClassifier();
            ContinuousLogger.TrueActivate(StopToken);

            Task.Run(DoNodeLoop).LaunchAsOrphan("Node Loop");

            //Communications.Bluetooth.BluetoothMessageCenter.OnReceiveMessage += HandleProposal;
        }
Ejemplo n.º 3
0
        protected override async void OnResume()
        {
            await base.DoOnResumeAsync(Task.Delay(500), AutoRestart : false);

            LoadMeleeClassifier();
            ContinuousLogger.TrueActivate(StopToken);

            Communications.Bluetooth.BluetoothMessageCenter.OnReceiveMessage += HandleProposal;

            //var newSW = new System.Diagnostics.Stopwatch();
            //var chor = new Choreographer(CueClassifiers[OFFENSE], CueClassifiers[DEFENSE], 500, 100);

            //int i = 0;
            //chor.OnSendCue += (o, e) =>
            //{
            //    Log.Debug("ChoreographerTest", $"Cueing {e.Value.GestureClass.className}.");
            //    Task.Delay(100).Wait();
            //    if (i++ < 20) chor.ProceedWithNextCue();
            //};
            //chor.Activate();
        }