public function addLoop($code, $priority = 5, $inline = false) {
        $loop = new Loop();
        $loop->setCode($code)
             ->setPriority($priority)
             ->setInline($inline);
        $this->builder->addEvent($loop);
        return $this;
    }
public function addLoop($code, $priority = 5, $inline = false) {
        $loop = new Loop();
        $loop->setCode($code)
             ->setPriority($priority)
             ->setInline($inline);
        $this->builder->addEvent($loop);
        return $this;
    }
public function addLoop ( $ code , $ priority = 5 , $ inline = false ) { $ loop = new Loop ( ) ; $ loop -> setCode ( $ code ) -> setPriority ( $ priority ) -> setInline ( $ inline ) ; $ this -> builder -> addEvent ( $ loop ) ; return $ this ; }
Adds a Loop pseudo event to the ManiaScript.
@param string $code The code to be executed.
@param int $priority The priority, 0 for most important, bigger for less important.
@param boolean $inline Whether this event is handled inline, i.e. without wrapping function.
@return $this Implementing fluent interface.
Adds a Loop pseudo event to the ManiaScript .