Esempio n. 1
0
        // Function from file: thermomachine.dm
        public override bool default_change_direction_wrench(dynamic user = null, dynamic W = null)
        {
            Obj_Machinery_Atmospherics node = null;


            if (!base.default_change_direction_wrench((object)(user), (object)(W)))
            {
                return(false);
            }
            this.SetInitDirections();
            node = this.nodes[1];

            if (node != null)
            {
                node.disconnect(this);
                this.nodes[1] = null;
            }
            this.nullifyPipenet(this.parents[1]);
            this.atmosinit();
            node = this.nodes[1];

            if (node != null)
            {
                node.atmosinit();
                node.addMember(this);
            }
            this.build_network();
            return(true);
        }
        // Function from file: atmosmachinery.dm
        public virtual void nullifyNode(double I = 0)
        {
            Obj_Machinery_Atmospherics N = null;


            if (Lang13.Bool(this.nodes[I]))
            {
                N = this.nodes[I];
                N.disconnect(this);
                this.nodes[I] = null;
            }
            return;
        }