Advertisement
dronkowitz

Journal.cs

Nov 4th, 2022 (edited)
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.23 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using UnityEngine;
  5.  
  6. public class Journal : MonoBehaviour
  7. {
  8.     // This script will be used to track quests
  9.     public QuestLog activeQuest;
  10.     public List<QuestLog> notCompleted;
  11.     public List<QuestLog> completed;
  12.     public List<QuestLog> failed;
  13.     private bool isQuestActive = false;
  14.     private bool isQuestCompleted = false;
  15.     private bool isQuestFailed = false;
  16.  
  17.     public void StartQuest(QuestLog log, QuestTask questTask)
  18.     {
  19.         activeQuest = log;
  20.         completed = new List<QuestLog>();
  21.         failed = new List<QuestLog>(failed.Count);
  22.  
  23.         if (activeQuest != null)
  24.         {
  25.             questTask = new QuestTask();
  26.         }
  27.     }
  28.     public enum QuestType
  29.     {
  30.         bringItemBacktoNPC,
  31.         killAnEnemy,
  32.         runToSpecificNPC
  33.     }
  34.     private void Awake()
  35.     {
  36.         isQuestActive = true;
  37.     }
  38. public struct TrackQuest
  39.     {
  40.         public string questName;
  41.         public string questDescription;
  42.         public string rarity;
  43.         public string reward;
  44.         public bool getActiveQuest;
  45.         public bool isQuestCompleted;
  46.         public bool isQuestFailed;
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement