コード例 #1
0
 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();
 }
コード例 #2
0
 public AbstractRuntimeBuilder(Random random)
 {
     this.variables        = new Dictionary <string, string>();
     this.random           = random;
     this.listenerRegistry = new ListenerRegistry();
 }
コード例 #3
0
 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;
 }