예제 #1
0
 /// <summary>
 /// Build the menu for displaying sensor information
 /// Dependent on if sensor is attacked
 /// </summary>
 /// <param name="builder"></param>
 /// <returns></returns>
 public override MenuToDisplay GetInformation(MenuBuilder builder)
 {
     builder = base.GetInformation(builder).GetBuilder();
     if (this.SensorBroken)
     {
         builder.AddStringItem(Strings.HasFlow, Strings.Hacked);
         builder.AddStringItem(Strings.IsPurityAsExpected, Strings.Hacked);
     }
     else
     {
         builder.AddBoolItem(Strings.HasFlow, this.HasFlow);
         builder.AddBoolItem(Strings.IsPurityAsExpected, this.IsPurityAsExpected);
     }
     return(builder.Build());
 }