Example #1
0
        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);
        }
Example #2
0
 public override bool isValid(string currentPath, List <string> incidences)
 {
     return(controller.IdentifierSummary.isType <GeoElement>(geoReference.getTargetId()));
 }