コード例 #1
0
 public static int GetBatteryCount(this KMBombInfo bombInfo, Battery batteryType)
 {
     return(GetBatteryCount(bombInfo, (int)batteryType));
 }
コード例 #2
0
 public static IEnumerable <string> GetColoredIndicators(this KMBombInfo bombInfo, IndicatorColor color)
 {
     return(GetColoredIndicators(bombInfo, color.ToString()));
 }
コード例 #3
0
 public static int GetBatteryCount(this KMBombInfo bombInfo)
 {
     return(GetBatteryEntries(bombInfo).Sum((x) => x.numbatteries));
 }
コード例 #4
0
 public static IEnumerable <string> GetOffIndicators(this KMBombInfo bombInfo)
 {
     return(GetIndicatorEntries(bombInfo).Where((x) => !x.IsOn()).Select((x) => x.label));
 }
コード例 #5
0
 public static IEnumerable <string> GetColoredIndicators(this KMBombInfo bombInfo, Indicator label)
 {
     return(GetColoredIndicators(bombInfo, null, label.ToString()));
 }
コード例 #6
0
 public static bool IsIndicatorOff(this KMBombInfo bombInfo, Indicator indicatorLabel)
 {
     return(bombInfo.IsIndicatorOff(indicatorLabel.ToString()));
 }
コード例 #7
0
 public static bool IsIndicatorOff(this KMBombInfo bombInfo, string indicatorLabel)
 {
     return(GetIndicatorEntries(bombInfo).Any((x) => !x.IsOn() && indicatorLabel.Equals(x.label)));
 }
コード例 #8
0
 public static bool IsIndicatorColored(this KMBombInfo bombInfo, string indicatorLabel, string indicatorColor)
 {
     return(GetColoredIndicators(bombInfo, indicatorColor).Any((x) => x.Equals(indicatorLabel)));
 }
コード例 #9
0
 public static bool IsIndicatorColorPresent(this KMBombInfo bombInfo, string indicatorColor)
 {
     return(GetColoredIndicators(bombInfo, indicatorColor).Any());
 }
コード例 #10
0
 public static bool IsIndicatorPresent(this KMBombInfo bombInfo, string indicatorLabel)
 {
     return(GetIndicatorEntries(bombInfo).Any((x) => indicatorLabel.Equals(x.label)));
 }
コード例 #11
0
 public static bool IsIndicatorColored(this KMBombInfo bombInfo, Indicator indicatorLabel, string indicatorColor)
 {
     return(IsIndicatorColored(bombInfo, indicatorLabel.ToString(), indicatorColor));
 }
コード例 #12
0
 private static IEnumerable <TwoFactorJSON> GetTwoFactorEntries(KMBombInfo bombInfo)
 {
     return(GetJSONEntries <TwoFactorJSON>(bombInfo, WidgetQueryTwofactor, null));
 }
コード例 #13
0
 private static IEnumerable <SerialNumberJSON> GetSerialNumberEntries(KMBombInfo bombInfo)
 {
     return(GetJSONEntries <SerialNumberJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_SERIAL_NUMBER, null));
 }
コード例 #14
0
 private static IEnumerable <PortsJSON> GetPortEntries(KMBombInfo bombInfo)
 {
     return(GetJSONEntries <PortsJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_PORTS, null));
 }
コード例 #15
0
 private static IEnumerable <BatteryJSON> GetBatteryEntries(KMBombInfo bombInfo)
 {
     return(GetJSONEntries <BatteryJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_BATTERIES, null));
 }
コード例 #16
0
 private static IEnumerable <ColorIndicatorJSON> GetColorIndicatorEntries(KMBombInfo bombInfo)
 {
     return(GetJSONEntries <ColorIndicatorJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_INDICATOR + "Color", null));
 }