BBGamelib.CCScheduler.unscheduleAllWithMinPriority C# (CSharp) Method

unscheduleAllWithMinPriority() public method

public unscheduleAllWithMinPriority ( int minPriority ) : void
minPriority int
return void
		public void unscheduleAllWithMinPriority(int minPriority){
			// Custom Selectors
			for (int i=hashForTimers.Count -1; i>=0; i--) {
				KeyValuePair<int, tHashTimerEntry> keyValue = hashForTimers.ElementAt(i);
				System.Object target = keyValue.Value.target;
				unscheduleAllForTarget(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) {
						unscheduleUpdateForTarget(entry.obj.target);
					}
				}
			}
			if(minPriority <= 0) {
				for( utNode<tListEntry> tmp = updates0.head; tmp != null ; tmp = tmp.next ) {
					utNode<tListEntry> entry = tmp;
					unscheduleUpdateForTarget(entry.obj.target);
				}
			}
			for( utNode<tListEntry> tmp = updatesPos.head; tmp != null ; tmp = tmp.next ) {
				utNode<tListEntry> entry = tmp;
				if(entry.obj.priority >= minPriority) {
					unscheduleUpdateForTarget(entry.obj.target);
				}
			}
		}