Exemplo n.º 1
0
 public CDialogPreconditionQuests()
 {
     this.ListOfCompletedQuests = new List <int>();
     this.ListOfOpenedQuests    = new List <int>();
     this.ListOfOnTestQuests    = new List <int>();
     this.ListOfFailedQuests    = new List <int>();
 }
Exemplo n.º 2
0
 public CDialog(string Holder, string Title, string Text, int QuestDialog, CDialogPrecondition Precondition, Actions Actions, ListOfQuests Nodes, int DialogID, int version)
 {
     this.Holder       = Holder;
     this.Title        = Title;
     this.Text         = Text;
     this.QuestDialog  = QuestDialog;
     this.Precondition = Precondition;
     this.Actions      = Actions;
     this.Nodes        = Nodes;
     this.DialogID     = DialogID;
     this.version      = version;
 }
Exemplo n.º 3
0
 public CDialog()
 {
     //this.Holder = new List<string>();
     this.Holder       = "";
     this.Title        = "";
     this.Text         = "";
     this.QuestDialog  = new int();
     this.Precondition = new CDialogPrecondition();
     this.Actions      = new Actions();
     this.Nodes        = new List <int>();
     this.DialogID     = new int();
     this.version      = new int();
 }
Exemplo n.º 4
0
 public void ExcluirQuest()
 {
     for (int i = 0; i < ListOfQuests.Count; i++)
     {
         if (ListOfQuests[i].Name == dropdownQuests.options[dropdownQuests.value].text)
         {
             ListOfQuests[i].Filhos.Remove(dropdownFilhos2.options[dropdownFilhos2.value].text);
             if (listOfQuests[i].Filhos.Count == 0)
             {
                 ListOfQuests.RemoveAt(i);
             }
         }
     }
     dropdownQuests.value = dropdownQuests.value - 1;
     ControllerGeral.instance.SaveListaFilhos();
     AttQuestTab();
 }
 public void Start()
 {
     ListOfQuests.Instance     = this;
     AllQuests[0].StartedQuest = true; //makes the first quest start instantly
     quest.text = AllQuests[0].quest;  //sets the name of the quest to the UI
 }