protected sealed override IEnumerator ProcessPayload(VisualPayload payload)
        {
            var windowVisualizer = GetWindowVisualizer(payload);

            windowVisualizer.RequestColor = RequestColorField.GetFirstValue(payload.Data);

            windowVisualizer.FilamentColor = FilamentColorField.GetFirstValue(payload.Data);

            windowVisualizer.RequestTeamLogo = RequestTeamLogoField.GetFirstValue(payload.Data);

            windowVisualizer.BinaryId = BinaryIdField.GetFirstValue(payload.Data);

            windowVisualizer.BinsetTeamIndices = BinsetTeamIndices.GetFirstValue(payload.Data);

            windowVisualizer.BinsetShortName = BinsetShortNameField.GetFirstValue(payload.Data);

            windowVisualizer.RequestId = RequestIdField.GetFirstValue(payload.Data);

            windowVisualizer.RequestNature = RequestNatureField.GetFirstValue(payload.Data);

            windowVisualizer.ElementCount = ElementCountField.GetFirstValue(payload.Data);

            // Order issue, must come after RequestNature!
            windowVisualizer.Success = SuccessField.GetFirstValue(payload.Data);

            windowVisualizer.PovType = PovTypeField.GetFirstValue(payload.Data);

            windowVisualizer.ShowDisassembly = ShowDisassemblyField.GetFirstValue(payload.Data);

            windowVisualizer.ShowComms = ShowCommsField.GetFirstValue(payload.Data);



            yield return(null);
        }
Ejemplo n.º 2
0
        protected override IEnumerator ProcessPayload(VisualPayload payload)
        {
            var annotationType = AnnotationType.GetLastKeyValue(payload.Data);
            var icon           =
                VisualizerFactory.InstantiateAnnotationIcon(annotationType);

            if (annotationType == "transmit")
            {
                icon.Color = ChallengeSetColorField.GetFirstValue(payload.Data);
            }
            else if (annotationType == "receive")
            {
                icon.Color = RequestColorField.GetFirstValue(payload.Data);
            }

            icon.AnnotationText = AnnotationText.GetLastKeyValue(payload.Data);

            icon.Initialize(this, payload);

            yield return(null);
        }