public static void Queue(QueueItem item)
        {
            if (!item.Nodes.Any())
            {
                Core.Logger.Debug("Item {0} was queued without any nodes", item.Name);
                return;
            }

            if (QueueItemComparer.Equals(item, _active) || Q.Contains(item, QueueItemComparer))
            {
                string activeNodeName = "";
                if (item.ActiveNode != null)
                {
                    activeNodeName = item.ActiveNode.GetType().Name;
                }
                Core.Logger.Verbose("Discarding Duplicate Queue Request Name='{0}' Id='{1}' Type='{2}'", item.Name, item.Id, activeNodeName);
                return;
            }

            if (item.Condition == null)
            {
                item.Condition = ret => true;
            }

            ProfileUtils.ReplaceTags(item.Nodes);
            Q.Add(item);
        }
Exemple #2
0
 protected override void OnProfileLoaded()
 {
     ProfileUtils.LoadAdditionalGameParams();
     ProfileHistory.Add(ProfileManager.CurrentProfile);
     ProfileUtils.ProcessProfile();
 }