// Function from file: gateway.dm public void toggleon(dynamic user = null) { Obj_Machinery_Gateway G = null; if (!this.ready) { return; } if (this.linked.len != 8) { return; } if (!Lang13.Bool(this.stationgate)) { user.WriteMsg("<span class='notice'>Error: No destination found.</span>"); return; } foreach (dynamic _a in Lang13.Enumerate(this.linked, typeof(Obj_Machinery_Gateway))) { G = _a; G.active = true; G.update_icon(); } this.active = true; this.update_icon(); return; }
// Function from file: gateway.dm public void toggleoff( ) { Obj_Machinery_Gateway G = null; foreach (dynamic _a in Lang13.Enumerate(this.linked, typeof(Obj_Machinery_Gateway))) { G = _a; G.active = false; G.update_icon(); } this.active = false; this.update_icon(); return; }
// Function from file: gateway.dm public void toggleon(dynamic user = null) { Obj_Machinery_Gateway G = null; if (!this.ready) { return; } if (this.linked.len != 8) { return; } if (!Lang13.Bool(this.powered())) { return; } if (!Lang13.Bool(this.awaygate)) { user.WriteMsg("<span class='notice'>Error: No destination found.</span>"); return; } if (Game13.time < this.wait) { user.WriteMsg("<span class='notice'>Error: Warpspace triangulation in progress. Estimated time to completion: " + Num13.Floor((this.wait - Game13.time) / 10 / 60) + " minutes.</span>"); return; } foreach (dynamic _a in Lang13.Enumerate(this.linked, typeof(Obj_Machinery_Gateway))) { G = _a; G.active = true; G.update_icon(); } this.active = true; this.update_icon(); return; }