Example #1
0
 /// <summary>
 /// 初始化任务池的新实例。
 /// </summary>
 public TaskPool()
 {
     m_FreeAgents    = new Stack <ITaskAgent <T> >();
     m_WorkingAgents = new GXLinkedList <ITaskAgent <T> >();
     m_WaitingTasks  = new GXLinkedList <T>();
     m_Paused        = false;
 }
Example #2
0
 /// <summary>
 /// 初始化游戏框架多值字典类的新实例。
 /// </summary>
 public GXMultiDictionary()
 {
     m_LinkedList = new GXLinkedList <TValue>();
     m_Dictionary = new Dictionary <TKey, GXLinkedListRange <TValue> >();
 }