public QQ_Task(QQ_Task template) { ID = template.ID; Name = template.Name; Description = template.Description; NextTasks = new List <int>(template.NextTasks); MaxProgress = template.MaxProgress; Optional = template.Optional; }
/// <summary> /// Sets a task with the given id. /// </summary> /// <param name="id"></param> /// <param name="task"></param> /// <returns></returns> public void SetTask(int id, QQ_Task task) { Quest.Tasks[GetTaskIndex(id)] = task; }