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; }
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); }