public override IEnumerator ReceivePayload(VisualPayload payload)
        {
            foreach (var entry in Scope.GetEntries(payload.Data))
            {
                try
                {
                    var repeatBytes = RepeatByBytes.GetValue(entry);
                    var stringData  = StringInput.GetValue(entry);


                    var bitStream = InternalArrayBitstream.GenerateBitStreamFromLetterNumbers(stringData);
                    bitStream.AdvanceByBytes = repeatBytes;

                    BitStreamTarget.SetValue(bitStream, entry);
                }
                catch
                {
                    Debug.LogError("Bitstream cannot be created!");
                    var stringData2 = StringInput.GetValue(entry);
                }
            }

            var iterator = Router.TransmitAll(payload);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }
Exemple #2
0
        public override IEnumerator ReceivePayload(VisualPayload payload)
        {
            var newStream = InternalArrayBitstream.GenerateBitStreamFromInt(DataInt.GetFirstValue(payload.Data), 8);

            BitstreamTarget.SetValue(newStream, payload.Data);

            var iterator = Router.TransmitAll(payload);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }
Exemple #3
0
        protected override void OnProcessOutputSchema(MutableObject newSchema)
        {
            BitstreamTarget.SetValue(InternalArrayBitstream.GenerateBitStreamFromInt(5, 8), newSchema);

            Router.TransmitAllSchema(newSchema);
        }
Exemple #4
0
        protected override void OnProcessOutputSchema(MutableObject newSchema)
        {
            NewBitstreamTarget.SetValue(InternalArrayBitstream.GenerateBitStreamFromLetterNumbers("Test"), newSchema);

            Router.TransmitAllSchema(newSchema);
        }