Exemple #1
0
        protected override void Prepare()
        {
            var output  = FOutputContainer.GetPluginIO() as IPin;
            var subType = output.GetDownstreamSubType();

            if (subType != FLastSubType)
            {
                FLastSubType = subType;
                (output as IEnumOut).SetSubType(subType);
                (FSpreadContainer.GetPluginIO() as IEnumIn).SetSubType(subType);
                (FInputContainer.GetPluginIO() as IEnumIn).SetSubType(subType);
            }
        }
Exemple #2
0
        public override void Evaluate(int spreadMax)
        {
            var outputPin = FOutputContainer.GetPluginIO() as IPin;
            var subType   = outputPin.GetDownstreamSubType();

            if (subType != FLastSubType)
            {
                FLastSubType = subType;
                (outputPin as IEnumOut).SetSubType(subType);
                (FSpreadContainer.GetPluginIO() as IEnumIn).SetSubType(subType);
                (FInputContainer.GetPluginIO() as IEnumIn).SetSubType(subType);
            }
            base.Evaluate(spreadMax);
        }