Пример #1
0
        private TypeMatcher makeTypeMatcherHelper(ParseTreeNode node, IScene scene)
        {
            string strVal = node.ChildNodes[0].Token.ValueString;
            if (grammar.Constants.Constants.ContainsKey(strVal)) Game.CurrentGame.Die("Invalid use of the term " + strVal);

            if (node.Term == grammar.IsType)
                return new PrototypeTypeMatcher(scene.GetOfPrototype(strVal, false));

            return new PrototypeTypeMatcher(scene.GetOfPrototype(strVal, true));
        }