public bool IsUnlocked(ResourceActivationContext ctxt, LocationAttractionItemProperties props) { switch (props.RangeAvailability) { case AttractionRangeAvailability.Always: return(true); case AttractionRangeAvailability.InRangeAndAfter: return(ctxt.CheckEvent("in_range")); case AttractionRangeAvailability.OnlyInRange: return(ctxt.CheckState("in_range")); } return(false); }