public ConversationElement() { ///<summary> ///Create an End Element ///</summary> type = ConversationElementType.End; }
public ConversationElement(string _setKey, bool _setValue, int _next = -1) { ///<summary> ///Create a Set Element ///</summary> setKey = _setKey; setValue = _setValue; type = ConversationElementType.Set; }
//where you want to go if the values are all correct //refers to the index of the conversation element list kept in the tree; //if multiple are true, you just go to the first correct one //if none are, you just go to the next element as set in next public ConversationElement(string _text, int _next = -1) { ///<summary> ///Create a Text Element ///</summary> text = _text; next = _next; type = ConversationElementType.Text; }
public ConversationElement(List <List <string> > _branchVariables, List <List <bool> > _branchConditions, List <int> _branchResults, int _next = -1) { ///<summary> ///Create a Branch Element ///</summary> branchConditions = _branchConditions; branchVariables = _branchVariables; branchResults = _branchResults; next = _next; type = ConversationElementType.Branch; }
public ConversationElement(List <string> _choices, List <string> _responseKeys, List <bool> _responseValues, int _next = -1) { ///<summary> ///Create a Choice Element ///</summary> choices = _choices; responseKeys = _responseKeys; responseValues = _responseValues; next = _next; type = ConversationElementType.Choice; }