public DialogueRuntime(DialogueTreeEntity dialogueTree, Dictionary <string, string> variables, Random random, ListenerRegistry listenerRegistry ) { this.dialogueTree = dialogueTree; this.variables = variables; this.random = random; this.listenerRegistry = listenerRegistry; this.InitializeTree(); }
public AbstractRuntimeBuilder(Random random) { this.variables = new Dictionary <string, string>(); this.random = random; this.listenerRegistry = new ListenerRegistry(); }
public RuntimeBuilder(DialogueTreeEntity dialogueTree, Random random, ListenerRegistry listenerRegistry) : base(random) { this.dialogueTree = dialogueTree; this.variables = new Dictionary <string, string>(dialogueTree.variables.data); this.listenerRegistry = listenerRegistry; }