public function addCustomEvent($name, $code, $priority = 5, $inline = false) {
        $custom = new Custom();
        $custom->setName($name)
               ->setCode($code)
               ->setPriority($priority)
               ->setInline($inline);
        $this->builder->addEvent($custom);
        return $this;
    }
public function addCustomEvent($name, $code, $priority = 5, $inline = false) {
        $custom = new Custom();
        $custom->setName($name)
               ->setCode($code)
               ->setPriority($priority)
               ->setInline($inline);
        $this->builder->addEvent($custom);
        return $this;
    }
public function addCustomEvent ( $ name , $ code , $ priority = 5 , $ inline = false ) { $ custom = new Custom ( ) ; $ custom -> setName ( $ name ) -> setCode ( $ code ) -> setPriority ( $ priority ) -> setInline ( $ inline ) ; $ this -> builder -> addEvent ( $ custom ) ; return $ this ; }
Adds a custom event to the ManiaScript.
@param string $name The name of the event.
@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 custom event to the ManiaScript .