Пример #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)}");
 }
Пример #2
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"REGIONNAME {Name}");
 }
Пример #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()}");
 }
Пример #4
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"TAXI:{Name}:{MaximumSpeed}:{UsageFlag}:{GateName}");
 }
Пример #5
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return
         ($"{"".PadRight(this.SegmentIdentifier.PadRight(26, ' ').Length)} {this.Start} {this.End}{(this.Colour == null ? "" : " " + this.Colour)}");
 }
Пример #6
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"BORDER:{string.Join(':', this.BorderLines)}");
 }
Пример #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}");
 }
Пример #8
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Icao} {this.Frequency} {this.LatLong.ToString()} E");
 }
Пример #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}");
 }
Пример #11
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"ACTIVE_RUNWAY:{this.Airfield}:{this.Identifier}:{this.Mode}");
 }
Пример #12
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"{this.Type}:{this.Airport}:{this.Runway}:{this.Identifier}:{string.Join(' ', this.Route)}");
 }
Пример #13
0
 public override string GetCompileData(SectorElementCollection elements)
 {
     return($"ALTOWNER:{this.Name}:{string.Join(':', this.Owners)}");
 }
Пример #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)}");
 }
Пример #16
0
 public void Compile(SectorElementCollection elements, IOutputWriter output)
 {
     output.WriteLine(Line.ToString());
 }
Пример #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}"
         );
 }