Ejemplo n.º 1
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Identifier?.PadRight(26, ' ')} {this.InitialSegment.Start} {this.InitialSegment.End}{(this.InitialSegment.Colour == null ? "" : " " + this.InitialSegment.Colour)}");
 }
Ejemplo n.º 2
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"REGIONNAME {Name}");
 }
Ejemplo n.º 3
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return
         ($"{this.Callsign}:{this.RtfCallsign}:{this.Frequency}:{this.Identifier}:{this.MiddleLetter}:{this.Prefix}:{this.Suffix}:-:-:{this.SquawkRangeStart}:{this.SquawkRangeEnd}{this.CompileVisCenters()}");
 }
Ejemplo n.º 4
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"TAXI:{Name}:{MaximumSpeed}:{UsageFlag}:{GateName}");
 }
Ejemplo n.º 5
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return
         ($"{"".PadRight(this.SegmentIdentifier.PadRight(26, ' ').Length)} {this.Start} {this.End}{(this.Colour == null ? "" : " " + this.Colour)}");
 }
Ejemplo n.º 6
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"BORDER:{string.Join(':', this.BorderLines)}");
 }
Ejemplo n.º 7
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return
         ($"{this.FirstIdentifier} {this.ReverseIdentifier} {this.FormatHeading(this.FirstHeading)} {this.FormatHeading(this.ReverseHeading)} {this.FirstThreshold.ToString()} {this.ReverseThreshold.ToString()} {this.AirfieldIcao} {elements.Airports.First(airport => airport.Icao == AirfieldIcao).Name}");
 }
Ejemplo n.º 8
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Icao} {this.Frequency} {this.LatLong.ToString()} E");
 }
Ejemplo n.º 9
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"SECTOR:{this.Name}:{this.MinimumAltitude.ToString()}:{this.MaximumAltitude.ToString()}");
 }
 /*
  * Returns the compile data for just the main definition.
  */
 public override string GetCompileData(SectorElementCollection elements)
 {
     return
         ($"CIRCLE_SECTORLINE:{this.Name}:{this.CentrePoint ?? this.CentreCoordinate.latitude + ":" + this.CentreCoordinate.longitude}:{this.Radius}");
 }
Ejemplo n.º 11
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"ACTIVE_RUNWAY:{this.Airfield}:{this.Identifier}:{this.Mode}");
 }
Ejemplo n.º 12
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Type}:{this.Airport}:{this.Runway}:{this.Identifier}:{string.Join(' ', this.Route)}");
 }
Ejemplo n.º 13
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"ALTOWNER:{this.Name}:{string.Join(':', this.Owners)}");
 }
Ejemplo n.º 14
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"EXIT:{Runway}:{ExitName}:{Direction}:{MaximumSpeed}");
 }
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"ARRAPT:{string.Join(":", this.Airports)}");
 }
Ejemplo n.º 16
0
 public void Compile(SectorElementCollection elements, IOutputWriter output)
 {
     output.WriteLine(Line.ToString());
 }
Ejemplo n.º 17
0
 /*
  * Airports compile in a special way - they combine 4 lines of Basic data with the ICAO
  * from the folder containing the airport data. They also put the airfield name
  * on the end as a comment.
  *
  * Therefore, we disregard any comments or docblocks in this section.
  */
 public override void Compile(SectorElementCollection elements, IOutputWriter output)
 {
     output.WriteLine(
         $"{this.GetCompileData(elements)} ;{this.Name}"
         );
 }