Removed SoundIO.cs and Sounds.cs

This commit is contained in:
miku-666
2023-08-25 12:51:12 +02:00
parent 143984a5d6
commit 01edf96f9c
2 changed files with 0 additions and 47 deletions

View File

@@ -1,26 +0,0 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace PckStudio.Classes.IO.Sounds
{
public class SoundIO
{
public Dictionary<string, SoundInfo> Read(string Filepath)
{
var jObj = (Newtonsoft.Json.Linq.JObject)JsonConvert.DeserializeObject(File.ReadAllText(Filepath));
var dict = JsonConvert.DeserializeObject<Dictionary<string, SoundInfo>>(jObj.ToString());
return dict;
}
public string Serialize(Dictionary<string, SoundInfo> input)
{
return JsonConvert.SerializeObject(input, Formatting.Indented);
}
}
}

View File

@@ -1,21 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PckStudio.Classes.IO.Sounds
{
public class SoundInfo
{
public bool replace { get; set; }
public List<Sound> sounds = new List<Sound>();
}
public class Sound
{
public string name { get; set; }
public string type { get; set; }
public bool stream { get; set; }
}
}