fml update

This commit is contained in:
Steffen Schröder
2014-04-15 15:47:57 +02:00
parent 81af68838b
commit 6e37411fc4
5 changed files with 209 additions and 33 deletions

View File

@ -18,6 +18,7 @@ use FML\ManiaCode\PlayMap;
use FML\ManiaCode\PlayReplay;
use FML\ManiaCode\ShowMessage;
use FML\ManiaCode\ViewReplay;
use FML\ManiaCode\InstallMacroblock;
/**
* Class representing a ManiaCode
@ -85,6 +86,20 @@ class ManiaCode {
return $this;
}
/**
* Install a Macroblock
*
* @param string $name Macroblock Name
* @param string $file Macroblock File
* @param string $url Macroblock Url
* @return \FML\ManiaCode
*/
public function addInstallMacroblock($name, $file, $url) {
$macroblockElement = new InstallMacroblock($name, $file, $url);
$this->addElement($macroblockElement);
return $this;
}
/**
* Install a Map
*