Exemple #1
0
    public static Preset Deserialize(JSONClass json, int fileIndex = -1)
    {
        JSONArray   jsonMotion = json ["motion"].AsArray;
        List <Pose> motion     = new List <Pose> ();

        foreach (JSONClass jsonPose in jsonMotion.Childs)
        {
            Pose pose = Pose.Deserialize(jsonPose);
            motion.Add(pose);
        }

        string title  = json ["title"].Value;
        string author = json ["author"].Value;

        Preset preset = new Preset(motion, title, author, fileIndex);

        return(preset);
    }