I think uploading packs is more or less working. I nutted out a few bugs in a lot...
[rock.divinelegy.git] / Domain / Entities / StepMania / SimfileStepByStepBuilder.php
index d0b9971..2408d2f 100644 (file)
@@ -55,8 +55,9 @@ interface ISimfileStepByStepBuilder_With_BgChanges
 \r
 interface ISimfileStepByStepBuilder_With_Steps\r
 {\r
-    public function With_Banner(IFile $banner);\r
-    public function With_Simfile(IFile $simfile);\r
+    public function With_Banner(IFile $banner = null);\r
+    public function With_Simfile(IFile $simfile = null);\r
+    public function With_PackId($packId = null);\r
     public function build();\r
 }\r
 \r
@@ -155,18 +156,24 @@ class SimfileStepByStepBuilder_With_BgChanges extends AbstractSimfileStepByStepB
 \r
 class SimfileStepByStepBuilder_With_Steps extends AbstractSimfileStepByStepBuilder implements ISimfileStepByStepBuilder_With_Steps\r
 {\r
-    public function With_Banner(IFile $banner)\r
+    public function With_Banner(IFile $banner = null)\r
     {\r
         $this->_simfileBuilder->With_Banner($banner);\r
         return new SimfileStepByStepBuilder_With_Steps($this->_simfileBuilder); //TODO: Pretty sure return $this will be OK\r
     }\r
     \r
-    public function With_Simfile(IFile $simfile)\r
+    public function With_Simfile(IFile $simfile = null)\r
     {\r
         $this->_simfileBuilder->With_Simfile($simfile);\r
         return new SimfileStepByStepBuilder_With_Steps($this->_simfileBuilder);\r
     }\r
     \r
+    public function With_PackId($packId = null)\r
+    {\r
+        $this->_simfileBuilder->With_PackId($packId);\r
+        return new SimfileStepByStepBuilder_With_Steps($this->_simfileBuilder);\r
+    }\r
+    \r
     public function build()\r
     {\r
         return $this->_simfileBuilder\r