protected function buildMainFunction() {
        $functionPrefix = $this->options->getFunctionPrefix();
        $result = 'Void ' . $functionPrefix . '_Dummy() {}' . PHP_EOL
                . 'main() {' . PHP_EOL
                . $this->eventHandlerFactory->getHandler('Load')->getInlineCode()
                . '    yield;' . PHP_EOL
                . $this->eventHandlerFactory->getHandler('FirstLoop')->getInlineCode()
                . $this->buildEventLoop()
                . '}' . PHP_EOL;
        return $result;
    }
protected function buildMainFunction() {
        $functionPrefix = $this->options->getFunctionPrefix();
        $result = 'Void ' . $functionPrefix . '_Dummy() {}' . PHP_EOL
                . 'main() {' . PHP_EOL
                . $this->eventHandlerFactory->getHandler('Load')->getInlineCode()
                . '    yield;' . PHP_EOL
                . $this->eventHandlerFactory->getHandler('FirstLoop')->getInlineCode()
                . $this->buildEventLoop()
                . '}' . PHP_EOL;
        return $result;
    }
protected function buildMainFunction ( ) { $ functionPrefix = $ this -> options -> getFunctionPrefix ( ) ; $ result = 'Void ' . $ functionPrefix . '_Dummy() {}' . PHP_EOL . 'main() {' . PHP_EOL . $ this -> eventHandlerFactory -> getHandler ( 'Load' ) -> getInlineCode ( ) . '    yield;' . PHP_EOL . $ this -> eventHandlerFactory -> getHandler ( 'FirstLoop' ) -> getInlineCode ( ) . $ this -> buildEventLoop ( ) . '}' . PHP_EOL ; return $ result ; }
Builds the main function of the ManiaScript.
@return $this Implementing fluent interface.
Builds the main function of the ManiaScript .