private GeoElement FindGeoElement(GeoReference reference) { if (!cache.ContainsKey(reference)) { var elem = Game.Instance.GameState.FindElement <GeoElement>(reference.getTargetId()); cache.Add(reference, elem); } return(cache.ContainsKey(reference) ? cache[reference] : null); }
public override bool isValid(string currentPath, List <string> incidences) { return(controller.IdentifierSummary.isType <GeoElement>(geoReference.getTargetId())); }