// Function from file: conveyor2.dm
        public override bool afterattack(dynamic target = null, dynamic user = null, bool?proximity_flag = null, string click_parameters = null)
        {
            bool found = false;
            Obj_Machinery_Conveyor       C  = null;
            Obj_Machinery_ConveyorSwitch NC = null;


            if (!(proximity_flag == true) || Lang13.Bool(user.stat) || !(target is Tile_Simulated_Floor) || target is Zone_Shuttle)
            {
                return(false);
            }
            found = false;

            foreach (dynamic _a in Lang13.Enumerate(Map13.FetchInView(null, null), typeof(Obj_Machinery_Conveyor)))
            {
                C = _a;


                if (C.id == this.id)
                {
                    found = true;
                    break;
                }
            }

            if (!found)
            {
                user.WriteMsg(new Txt().icon(this).str("<span class=notice>The conveyor switch did not detect any linked conveyor belts in range.</span>").ToString());
                return(false);
            }
            NC = new Obj_Machinery_ConveyorSwitch(target, this.id);
            this.transfer_fingerprints_to(NC);
            GlobalFuncs.qdel(this);
            return(false);
        }
        // Function from file: conveyor2.dm
        public override dynamic attack_hand(dynamic a = null, bool?b = null, bool?c = null)
        {
            Obj_Machinery_ConveyorSwitch S = null;

            this.add_fingerprint(a);

            if (this.position == 0)
            {
                if (this.convdir != 0)
                {
                    this.position = this.convdir;
                }
                else if (this.last_pos < 0)
                {
                    this.position = 1;
                    this.last_pos = 0;
                }
                else
                {
                    this.position = -1;
                    this.last_pos = 0;
                }
            }
            else
            {
                this.last_pos = this.position;
                this.position = 0;
            }
            this.operated = true;
            this.update();

            foreach (dynamic _a in Lang13.Enumerate(GlobalVars.machines, typeof(Obj_Machinery_ConveyorSwitch)))
            {
                S = _a;


                if (S.id == this.id)
                {
                    S.position = this.position;
                    S.update();
                }
            }
            return(null);
        }