/// <summary> /// Sets a fallback delegate for returning a variable from an arbitrary id. /// </summary> public CustomVariantResolver SetVariableFallback(GetVarWithTableKeyAndContextDelegate inFallback) { m_GetVarFallback = null; m_GetVarWithContextFallback = inFallback; m_HasSpecialVariantLookups = CalculateHasSpecialVariants(); return(this); }
/// <summary> /// Clears variable lookup. /// </summary> public void ClearVarLookup() { m_HasSpecialVariantLookups = false; if (m_TableVarLookup != null) { m_TableVarLookup.Clear(); } if (m_FullPathVarLookup != null) { m_FullPathVarLookup.Clear(); } m_GetVarFallback = null; m_GetVarWithContextFallback = null; }