PantheonPrototype.DialogueManager.StartConversation C# (CSharp) Method

StartConversation() public method

Starts a conversation with a given entity. This entity ID is used to identify which conversation to execute.
public StartConversation ( String entityName, Entity entity ) : bool
entityName String The entity to begin conversing with. Used as a handle to pick the conversation "column."
entity Entity
return bool
        public bool StartConversation(String entityName, Entity entity)
        {
            this.currentConversation = this.conversations[entityName];
            this.currentConversationState = 0;
            this.currentConversationBubble = new TextBubble(entity, ((DialogueNode)this.currentConversation[this.currentConversationState]).Text);
            this.activeTextBubbles.AddLast(this.currentConversationBubble);

            if (this.currentConversation == null) return false;

            // Flag that we're currently talking, it's rude to interrupt.
            this.npcStates[entityName] = DialogueManager.STATE_TALKING;

            return true;
        }