src/infinity/ecs/scheduling/RRScheduler.java
/**
     * Registers the system in the Scheduler.
     * @param system
     * @param priority The priority of each System must be unique, if a second system with the same 
     * priority is registered nothing happens. The highest priority is 1. The priority must be &#62; 0
     * @return  
     */
Registers the system in the Scheduler.
@param system
@param priority The priority of each System must be unique, if a second system with the same
priority is registered nothing happens. The highest priority is 1. The priority must be > 0
@return
Registers the system in the Scheduler . @param system @param priority The priority of each System must be unique if a second system with the same priority is registered nothing happens . The highest priority is 1 . The priority must be > 0 @return
@Override
    public boolean registerSystem(EntitySystem system, Integer priority) {
	if(priority <= 0)
	    return false;
	ArrayList<EntitySystem> list = _systems.get(priority);
	if(list == null) {
	    list = new ArrayList<>();
	    _systems.put(priority, list);
	}
	return list.add(system);
    }
@ Override public boolean registerSystem ( EntitySystem system , Integer priority ) { if ( priority <= 0 ) return false ; ArrayList < EntitySystem > list = _systems . get ( priority ) ; if ( list == null ) { list = new ArrayList < > ( ) ; _systems . put ( priority , list ) ; } return list . add ( system ) ; }
Registers the system in the Scheduler.
Registers the system in the Scheduler .