mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-23 01:15:09 +00:00
Removed SoundIO.cs and Sounds.cs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user