Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ThreadInfo.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace SiliconStudio.Paradox.DebugTools.DataStructures
7 {
8  public class ThreadInfo
9  {
10  public int Id { get; set; }
11  public List<MicroThreadInfo> MicroThreadItems { get; private set; }
12 
13  public ThreadInfo()
14  {
15  MicroThreadItems = new List<MicroThreadInfo>();
16  }
17 
19  {
20  ThreadInfo duplicate = new ThreadInfo();
21 
22  duplicate.Id = Id;
23  MicroThreadItems.ForEach(item => duplicate.MicroThreadItems.Add(item.Duplicate()));
24 
25  return duplicate;
26  }
27  }
28 }