// 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 override void construction(dynamic pipe_type = null, dynamic obj_color = null) { Ent_Static T = null; ByTable nodes = null; Obj_Machinery_Atmospherics A = null; if (this.can_unwrench) { this.color = obj_color; this.pipe_color = obj_color; this.stored.dir = this.dir; this.stored.pipe_type = pipe_type; this.stored.color = obj_color; } T = this.loc; this.level = (Lang13.Bool(((dynamic)T).intact) ? 2 : 1); this.atmosinit(); nodes = this.pipeline_expansion(); foreach (dynamic _a in Lang13.Enumerate(nodes, typeof(Obj_Machinery_Atmospherics))) { A = _a; A.atmosinit(); A.addMember(this); } this.build_network(); return; }
// Function from file: air.dm public void setup_atmos_machinery(double?z_level = null) { Obj_Machinery_Atmospherics AM = null; foreach (dynamic _a in Lang13.Enumerate(this.atmos_machinery, typeof(Obj_Machinery_Atmospherics))) { AM = _a; if (Lang13.Bool(z_level) && AM.z != z_level) { continue; } AM.atmosinit(); } return; }