Пример #1
0
 /**
  * Add a system to the game, and set its priority for the order in which the
  * processes are updated by the game loop.
  *
  * <p>The priority dictates the order in which the processes are updated by the game
  * loop. Lower numbers for priority are updated first. i.e. a priority of 1 is
  * updated before a priority of 2.</p>
  *
  * @param system The system to add to the game.
  * @param priority The priority for updating the processes during the game loop. A
  * lower number means the system is updated sooner.
  */
 public void AddProcess(Process process, int priority)
 {
     process.priority = priority;
     process.AddToAsh(this);
     processes.Add(process);
 }