Пример #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);
        }