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