GrimmLib.Token.getTokenString C# (CSharp) Method

getTokenString() public method

public getTokenString ( ) : string
return string
        public string getTokenString()
        {
            return _tokenString;
        }

Usage Example

Example #1
0
        private TimedDialogueNode VisitTimedDialogueNode(DialogueNode pPrevious)
        {
                        #if DEBUG_WRITE
            Console.WriteLine("VisitTimedDialogueNode()");
                        #endif

            Token  speakerToken = match(Token.TokenType.NAME);
            string speaker      = speakerToken.getTokenString();

            Token  lineToken = match(Token.TokenType.QUOTED_STRING);
            string line      = lineToken.getTokenString();

            TimedDialogueNode n = _dialogueRunner.Create <TimedDialogueNode>(_conversationName, _language, (_nodeCounter++).ToString() + "_line_" + lineToken.LineNr);            // + " (" + line + ")");
            n.speaker = speaker;
            n.line    = line;
            n.CalculateAndSetTimeBasedOnLineLength(false);

            if (lookAheadType(1) == Token.TokenType.BRACKET_LEFT)
            {
                match(Token.TokenType.BRACKET_LEFT);
                string nodeCustomName = match(Token.TokenType.NAME).getTokenString();
                n.name = nodeCustomName;
                match(Token.TokenType.BRACKET_RIGHT);
            }

                        #if DEBUG_WRITE
            Console.WriteLine("Added TimedDialogueNode with name '" + n.name + "' and line '" + n.line + "'");
                        #endif

            AddLinkFromPreviousNode(pPrevious, n);

            return(n);
        }
All Usage Examples Of GrimmLib.Token::getTokenString