public bool AllowUsageWithDirObj(string verbName, Thing dirObj) { if (!_verbHash.ContainsKey(verbName)) return false; if (!_verbHash[verbName].ContainsKey(typeof(AllowUsageWithDirObjDelegate))) return false; return ((AllowUsageWithDirObjDelegate)_verbHash[verbName][typeof(AllowUsageWithDirObjDelegate)]).Invoke(dirObj); }
public bool AllowUsageAsIndObjInAdverbialPhrase(string verbName, Thing doer, string preposition) { if (!_verbHash.ContainsKey(verbName)) return false; if (!_verbHash[verbName].ContainsKey(typeof(AllowUsageAsIndObjInAdverbialPhraseDelegate))) return false; return ((AllowUsageAsIndObjInAdverbialPhraseDelegate)_verbHash[verbName][typeof(AllowUsageAsIndObjInAdverbialPhraseDelegate)]).Invoke(doer, preposition); }
public bool AllowUsageWithAdverbialPhrase(string verbName, Thing indObj, string preposition) { if (!_verbHash.ContainsKey(verbName)) return false; if (!_verbHash[verbName].ContainsKey(typeof(AllowUsageWithAdverbialPhraseDelegate))) return false; AllowUsageWithAdverbialPhraseDelegate thisDelegate = (AllowUsageWithAdverbialPhraseDelegate)_verbHash[verbName][typeof(AllowUsageWithAdverbialPhraseDelegate)]; return thisDelegate.Invoke(indObj, preposition); }
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); }
public bool UseWithAdverbialPhrase(string verbName, Thing indObj, string preposition) { if (!_verbHash.ContainsKey(verbName)) return false; if (!_verbHash[verbName].ContainsKey(typeof(UseWithAdverbialPhraseDelegate))) return false; return ((UseWithAdverbialPhraseDelegate)_verbHash[verbName][typeof(UseWithAdverbialPhraseDelegate)]).Invoke(indObj, preposition); }
public bool UseAsDirObj(string verbName, Thing doer) { if (!_verbHash.ContainsKey(verbName)) return false; if (!_verbHash[verbName].ContainsKey(typeof(UseAsDirObjDelegate))) return false; return ((UseAsDirObjDelegate)_verbHash[verbName][typeof(UseAsDirObjDelegate)]).Invoke(doer); }