示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
        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);
        }