BBGamelib.CCScheduler.pauseAllTargetsWithMinPriority C# (CSharp) Method

pauseAllTargetsWithMinPriority() public method

public pauseAllTargetsWithMinPriority ( int minPriority ) : HashSet
minPriority int
return HashSet
		public HashSet<System.Object> pauseAllTargetsWithMinPriority(int minPriority){
			HashSet<System.Object> idsWithSelectors = new HashSet<System.Object>();
			
			// Custom Selectors
			{
				var enumerator = hashForTimers.GetEnumerator();
				while (enumerator.MoveNext()) {
					KeyValuePair<int, tHashTimerEntry> kv = enumerator.Current;
					tHashTimerEntry element = kv.Value;
					element.paused = true;
					idsWithSelectors.Add(element.target);
				}
			}
			// Updates selectors
			if(minPriority < 0) {
				for( utNode<tListEntry> tmp = updatesNeg.head; tmp != null ; tmp = tmp.next ) {
					utNode<tListEntry> entry = tmp;
					if(entry.obj.priority >= minPriority) {
						entry.obj.paused = true;
						idsWithSelectors.Add(entry.obj.target);
					}
				}
			}
			if(minPriority <= 0) {
				for( utNode<tListEntry> tmp = updates0.head; tmp != null ; tmp = tmp.next ) {
					utNode<tListEntry> entry = tmp;
					entry.obj.paused = true;
					idsWithSelectors.Add(entry.obj.target);
				}
			}
			{
				
				for( utNode<tListEntry> tmp = updatesPos.head; tmp != null ; tmp = tmp.next ) {
					utNode<tListEntry> entry = tmp;
					if(entry.obj.priority >= minPriority) {
						entry.obj.paused = true;
						idsWithSelectors.Add(entry.obj.target);
					}
				}
			}
			return idsWithSelectors;
		}