private void FromDirectory_Textures(string dir) {
var array = JsonConvert.DeserializeObject<Kn5Texture[]>(File.ReadAllText(Path.Combine(dir, "textures.json")));
Textures = new Dictionary<string,Kn5Texture>(array.Length);
TexturesData = new Dictionary<string,byte[]>(array.Length);
foreach (var texture in array) {
var data = File.ReadAllBytes(Path.Combine(dir, "texture", texture.Name));
texture.Length = data.Length;
Textures[texture.Name] = texture;
TexturesData[texture.Name] = data;
}
}