public CDialogPreconditionQuests() { this.ListOfCompletedQuests = new List <int>(); this.ListOfOpenedQuests = new List <int>(); this.ListOfOnTestQuests = new List <int>(); this.ListOfFailedQuests = new List <int>(); }
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; }
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(); }
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 }