void QueueLevelUp(Hashtable data) { LevelUpNode node = new LevelUpNode(data); LevelUpQueue.Add(node); LevelUpComparer comp = new LevelUpComparer(); LevelUpQueue.Sort(comp); }
public LevelUpNode GetNextLevelUpNotMove(string typeName) { LevelUpNode levelUp = null; foreach (LevelUpNode node in LevelUpQueue) { if (node.Category == typeName) { levelUp = node; break; } } return(levelUp); }