I think uploading packs is more or less working. I nutted out a few bugs in a lot...
[rock.divinelegy.git] / Domain / Entities / StepMania / SimfileBuilder.php
index c8afcd2..6c87aa9 100644 (file)
@@ -22,6 +22,7 @@ class SimfileBuilder implements ISimfileBuilder
     private $_bgChanges;\r
     private $_banner;\r
     private $_simfile;\r
+    private $_packId;\r
     private $_steps;\r
     \r
     //override parent\r
@@ -70,16 +71,22 @@ class SimfileBuilder implements ISimfileBuilder
         return $this;\r
     }\r
     \r
-    public function With_Banner(IFile $banner) {\r
+    public function With_Banner(IFile $banner = null) {\r
         $this->_banner = $banner;\r
         return $this;\r
     }\r
     \r
-    public function With_Simfile(IFile $simfile) {\r
+    public function With_Simfile(IFile $simfile = null) {\r
         $this->_simfile = $simfile;\r
         return $this;\r
     }\r
     \r
+    public function With_PackId($packId = null)\r
+    {\r
+        $this->_packId = $packId;\r
+        return $this;\r
+    }\r
+    \r
     public function With_Steps(array $steps) {\r
         $this->_steps = $steps;\r
         return $this;\r
@@ -97,6 +104,7 @@ class SimfileBuilder implements ISimfileBuilder
                                      $this->_bgChanges,\r
                                      $this->_banner,\r
                                      $this->_simfile,\r
+                                     $this->_packId,\r
                                      $this->_steps);\r
     }\r
 }\r