public bool AllowUsageAsDirObj(string verbName, Thing doer) { if (!_verbHash.ContainsKey(verbName)) { return(false); } if (!_verbHash[verbName].ContainsKey(typeof(AllowUsageAsDirObjDelegate))) { return(false); } AllowUsageAsDirObjDelegate thisDelegate = (AllowUsageAsDirObjDelegate)_verbHash[verbName][typeof(AllowUsageAsDirObjDelegate)]; return(thisDelegate.Invoke(doer, this)); }