コード例 #1
0
    public static SongMeta parse(JSONObject songJson)
    {
        string name       = songJson.GetString("name");
        string musicPath  = songJson.GetString("audio");
        string midiPath   = songJson.GetString("midi");
        string background = songJson.GetString("background");
        string thumbnail  = songJson.GetString("thumbnail");
        string author     = songJson.GetString("composer");
        string album      = songJson.GetString("album");
        bool   local      = songJson.GetBool("local");

        return(new SongMeta(local, name, musicPath, midiPath, thumbnail, background, author, album));
    }