コード例 #1
0
 public JsonObject Exchange()
 {
     return(new JsonObject()
     {
         ["HoldBegin"] = HoldBegin.Exchange(),
         ["HoldEnd"] = HoldEnd.Exchange(),
         ["StepNotes"] = stepNotes.Select(s => s.Exchange()).ToList()
     });
 }
コード例 #2
0
 public void Exchange(JsonObject json)
 {
     HoldBegin.Exchange(json["HoldBegin"]);
     HoldEnd.Exchange(json["HoldEnd"]);
     foreach (var step in json["StepNotes"])
     {
         var tmp = new HoldRelay(new LanePotision(0), new TimingPosition(1, 0), new NoteSize(1));
         tmp.Exchange(step);
         Put(tmp);
     }
 }