コード例 #1
0
 public void Update()
 {
     if (!this.Enabled)
     {
         return;
     }
     JollyDebug.Assert(!this.OwnerIsMissing);
     foreach (Expression expression in this.Expressions)
     {
         expression.Update();
     }
 }
コード例 #2
0
 private bool EvaluateFlagExpression(string flagExpression)
 {
     string[] substrings = flagExpression.Split(new char[] { ' ' }, System.StringSplitOptions.RemoveEmptyEntries);
     for (int i = 0; i < substrings.Length; ++i)
     {
         int index = this.IndexOfFlag(substrings[i]);
         JollyDebug.Assert(index > 0, "substring[{0}] == {1} not found in debug flags", i, substrings[i]);
         if (this.FlagValues[i])
         {
             return(true);
         }
     }
     return(false);
 }