示例#1
0
 public void addInput(GenericComponent component)
 {
     if (modifyArray(null, component))
     {
         component.output.Add(this);
     }
 }
示例#2
0
        public override void Execute()
        {
            GenericComponent source = input[0];

            this.state = !source.state;
            //notifyOutput();
        }
示例#3
0
        //executes a generic modification on the array, replacing the target component with the value
        private bool modifyArray(GenericComponent target, GenericComponent value)
        {
            int size = input.Count;

            input.Add(value);
            if (input.Count == size)
            {
                return(false);
            }
            return(true);
        }