コード例 #1
0
 public string GetEdgeworkString()
 {
     if (!BombInProgress)
     {
         return("Bomb not in progress");
     }
     else
     {
         BombInfo bombInfo = CurrentBomb.BombInfo;
         return("{0}b {1}h // {2} {3} // {4} // {5}".FormatThis(
                    bombInfo.GetBatteryCount(),
                    bombInfo.GetBatteryHolderCount(),
                    String.Join(" ", bombInfo.GetOnIndicators().Select(x => "*" + x)),
                    String.Join(" ", bombInfo.GetOffIndicators()),
                    String.Join(" ", bombInfo.GetPortPlates().Select(x => "[" + String.Join(", ", x) + "]")),
                    bombInfo.GetSerialNumber()
                    ));
     }
 }