daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class QuestStep
  2. {
  3.     public static List<QuestStep> QuestSteps = new List<QuestStep>();
  4.  
  5.     public int QuestID;
  6.     public int TaskID;
  7.     public int StepNumber;
  8. }
  9.  
  10. public class QuestTask
  11. {
  12.     public static List<QuestTask> QuestTasks = new List<QuestTask>();
  13.  
  14.     public int ID;
  15.     public string TaskName;
  16. }
  17.  
  18. public class QuestInfo
  19. {
  20.     public int ID;
  21.     public string QuestName;
  22.    
  23.     public List<List<QuestTask>> TaskSteps = new List<List<QuestTask>>();
  24. }
  25.  
  26. Linq query to fill the TaskSteps in QuestInfo.
  27. The outer list should be a descendingly sorted list(by stepnumber) of Lists with QuestTasks, that correspond to the QuestID(from QuestStep)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top