/// <summary> /// Uses a delegate to return a value for the given table id. /// </summary> public CustomVariantResolver SetTableVar(StringHash32 inTableId, GetVarWithIdDelegate inGetter) { if (inGetter == null) { throw new ArgumentNullException("inGetter"); } MakeTableVarRule(inTableId).SetDelegate(inGetter); return(this); }
public void SetDelegate(GetVarWithIdAndContextDelegate inGetDelegate) { m_GetDelegate = null; m_GetWithContextDelegate = inGetDelegate; }