// Function from file: magnet.dm
        public Obj_Machinery_MagneticController(dynamic loc = null) : base((object)(loc))
        {
            Obj_Machinery_MagneticModule M = null;

            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;

            if (this.autolink)
            {
                foreach (dynamic _a in Lang13.Enumerate(GlobalVars.machines, typeof(Obj_Machinery_MagneticModule)))
                {
                    M = _a;


                    if (M.freq == this.frequency && M.code == this.code)
                    {
                        this.magnets.Add(M);
                    }
                }
            }
            Task13.Schedule(45, (Task13.Closure)(() => {
                if (GlobalVars.SSradio != null)
                {
                    this.radio_connection = GlobalVars.SSradio.add_object(this, this.frequency, GlobalVars.RADIO_MAGNETS);
                }
                return;
            }));

            if (Lang13.Bool(this.path))
            {
                this.filter_path();
            }
            return;
        }
        // Function from file: magnet.dm
        public override int?process(dynamic seconds = null)
        {
            Obj_Machinery_MagneticModule M = null;


            if (this.magnets.len == 0 && this.autolink)
            {
                foreach (dynamic _a in Lang13.Enumerate(GlobalVars.machines, typeof(Obj_Machinery_MagneticModule)))
                {
                    M = _a;


                    if (M.freq == this.frequency && M.code == this.code)
                    {
                        this.magnets.Add(M);
                    }
                }
            }
            return(null);
        }
        // Function from file: magnet.dm
        public override dynamic attack_hand(dynamic a = null, bool?b = null, bool?c = null)
        {
            string dat = null;
            int    i   = 0;
            Obj_Machinery_MagneticModule M = null;


            if ((this.stat & 3) != 0)
            {
                return(null);
            }
            ((Mob)a).set_machine(this);
            dat = "<B>Magnetic Control Console</B><BR><BR>";

            if (!this.autolink)
            {
                dat += new Txt("\n		Frequency: <a href='?src=").Ref(this).str(";operation=setfreq'>").item(this.frequency).str("</a><br>\n		Code: <a href='?src=").Ref(this).str(";operation=setfreq'>").item(this.code).str("</a><br>\n		<a href='?src=").Ref(this).str(";operation=probe'>Probe Generators</a><br>\n		").ToString();
            }

            if (this.magnets.len >= 1)
            {
                dat += "Magnets confirmed: <br>";
                i    = 0;

                foreach (dynamic _a in Lang13.Enumerate(this.magnets, typeof(Obj_Machinery_MagneticModule)))
                {
                    M = _a;

                    i++;
                    dat += new Txt("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;< [").item(i).str("] (<a href='?src=").Ref(this).str(";radio-op=togglepower'>").item((M.on ? "On" : "Off")).str("</a>) | Electricity level: <a href='?src=").Ref(this).str(";radio-op=minuselec'>-</a> ").item(M.electricity_level).str(" <a href='?src=").Ref(this).str(";radio-op=pluselec'>+</a>; Magnetic field: <a href='?src=").Ref(this).str(";radio-op=minusmag'>-</a> ").item(M.magnetic_field).str(" <a href='?src=").Ref(this).str(";radio-op=plusmag'>+</a><br>").ToString();
                }
            }
            dat += new Txt("<br>Speed: <a href='?src=").Ref(this).str(";operation=minusspeed'>-</a> ").item(this.speed).str(" <a href='?src=").Ref(this).str(";operation=plusspeed'>+</a><br>").ToString();
            dat += new Txt("Path: {<a href='?src=").Ref(this).str(";operation=setpath'>").item(this.path).str("</a>}<br>").ToString();
            dat += new Txt("Moving: <a href='?src=").Ref(this).str(";operation=togglemoving'>").item((this.moving ? "Enabled" : "Disabled")).str("</a>").ToString();
            Interface13.Browse(a, dat, "window=magnet;size=400x500");
            GlobalFuncs.onclose(a, "magnet");
            return(null);
        }