コード例 #1
0
        protected override void ProcessValidation()
        {
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
            }
            if (!string.IsNullOrEmpty(BroadType))
            {
                if (BroadType.ToLowerInvariant() != BroadType)
                {
                    BroadType = BroadType.ToLowerInvariant();
                }
                string[] wrk = BroadType.Split(' ');

                foreach (string w in wrk)
                {
                    if (!string.IsNullOrEmpty(w) && w != "anomalyeater" && w != "asteroideater" && w != "sentient")
                    {
                        if (!BroadTypeList.Contains(w))
                        {
                            BroadTypeList.Add(w);
                        }
                    }
                }
            }
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
            }
        }
コード例 #2
0
ファイル: Vessel.cs プロジェクト: russjudge/ArtemisModLoader
 protected override void ProcessValidation()
 {
     if (_log.IsDebugEnabled)
     {
         _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
     }
     if (!string.IsNullOrEmpty(BroadType))
     {
         if (BroadType.ToLowerInvariant() != BroadType)
         {
             BroadType = BroadType.ToLowerInvariant();
         }
         if (!BroadTypeList.Contains(BroadType))
         {
             BroadTypeList.Add(BroadType);
         }
     }
     if (_log.IsDebugEnabled)
     {
         _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
     }
 }