示例#1
0
 public bool GetCachedResult(NodeRule rule, out Node node)
 {
     node = null;
     if (!cache.ContainsKey(pos))
         return false;
     if (cache[pos].ContainsKey(rule))
     {
         node = cache[pos][rule];
         return true;
     }
     return false;
 }
示例#2
0
 public bool GetCachedResult(NodeRule rule, out Node node)
 {
     node = null;
     if (!cache.ContainsKey(pos))
     {
         return(false);
     }
     if (cache[pos].ContainsKey(rule))
     {
         node = cache[pos][rule];
         return(true);
     }
     return(false);
 }