예제 #1
0
 /// <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);
 }
예제 #2
0
        /// <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;
        }