Ejemplo n.º 1
0
    public static DeserializedSong DeserializeObjects(string input)
    {
        var deserializer = new DeserializerBuilder()
                           .WithNamingConvention(new CamelCaseNamingConvention())
                           .IgnoreUnmatchedProperties()
                           .Build();
        DeserializedSong deserializeObject = deserializer.Deserialize <DeserializedSong>(input);

        return(deserializeObject);
    }
Ejemplo n.º 2
0
    public static DeserializedSong Deserialize(string yamlFileName)
    {
        string textFile     = FileManager.ReadYaml(yamlFileName);
        var    input        = new StringReader(textFile);
        var    deserializer = new DeserializerBuilder()
                              .WithNamingConvention(new CamelCaseNamingConvention())
                              .IgnoreUnmatchedProperties()
                              .Build();
        DeserializedSong deserializeObject = deserializer.Deserialize <DeserializedSong>(input);

        return(deserializeObject);
    }
Ejemplo n.º 3
0
 public void SetSongProperites(DeserializedSong song)
 {
     _currentSong = song;
     UpdateUISongProperties();
 }
Ejemplo n.º 4
0
 public void DesealizeSong(string filename)
 {
     CurrentSong = YamlImporter.Deserialize(FileManager.Path + filename + FileManager.ymlExtension);
     FileManager.SetFilename(filename);
 }
Ejemplo n.º 5
0
 public void HideProperties()
 {
     _currentSong = null;
     // WallObjectProperties.gameObject.SetActive(false);
     SongProperties.gameObject.SetActive(false);
 }