public string ToBBCode() { BBCodeWriter bbCodeWriter = new BBCodeWriter(); bbCodeWriter.AppendLine($"{SystemOne.HexCode} Connects to {SystemTwo.HexCode}"); return(bbCodeWriter.ToString()); }
public string ToBBCode() { string planetName = (Info.name == TypeInfo.name) ? "" : $"{Info.name} \t"; BBCodeWriter bbCodeWriter = new BBCodeWriter(); bbCodeWriter.Append($"{planetName} {TypeInfo.name} \t {TierInfo.name} \t {StageOfLifeInfo.name}"); foreach (var satellite in Satellites) { bbCodeWriter.Append($"\n\t {satellite.ToBBCode()}"); } return(bbCodeWriter.ToString()); }
public string ToBBCode() { string starName = (Info.name == StarTypeInfo.name) ? "" : $"{Info.name} \t"; BBCodeWriter bbCodeWriter = new BBCodeWriter(); bbCodeWriter.AppendLine($"{starName} {StarTypeInfo.name} \t {StarAgeInfo.name} \t {RadiationLevelInfo.name}"); foreach (var planet in Planets) { if (planet.Info.orbiting_planet_id == null) { bbCodeWriter.Append($"\n{planet.ToBBCode()}"); } } bbCodeWriter.AppendLine(); return(bbCodeWriter.ToString()); }
public string ToBBCode() { BBCodeWriter bbCodeWriter = new BBCodeWriter(); bbCodeWriter.BeginTag("spoiler", false, new BBCodeParameter("System")); bbCodeWriter.AppendLine($"Hex: {HexCode} \t Total Resources: {TotalResources}"); bbCodeWriter.AppendLine(); bbCodeWriter.AppendLine("b", "Stars"); foreach (var star in Stars) { bbCodeWriter.AppendLine(star.ToBBCode()); } bbCodeWriter.AppendLine("b", "Wormholes"); foreach (var wormhole in Wormholes) { bbCodeWriter.AppendLine(wormhole.ToBBCode()); } bbCodeWriter.EndTag(true); return(bbCodeWriter.ToString()); }