From 8e2510903fde417b592f7eaa21b1b654c733dc6b Mon Sep 17 00:00:00 2001 From: Harrison Date: Fri, 17 Apr 2020 22:29:01 -0500 Subject: [PATCH] Removed unnessecary attribute. --- RecrownedGTK/AssetsSystem/Information/TextureInfo.cs | 6 ++---- RecrownedGTK/AssetsSystem/Loaders/TextureLoader.cs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/RecrownedGTK/AssetsSystem/Information/TextureInfo.cs b/RecrownedGTK/AssetsSystem/Information/TextureInfo.cs index 0eeaffa..46c155f 100644 --- a/RecrownedGTK/AssetsSystem/Information/TextureInfo.cs +++ b/RecrownedGTK/AssetsSystem/Information/TextureInfo.cs @@ -3,12 +3,10 @@ using RecrownedGTK.Graphics; namespace RecrownedGTK.AssetsSystem.Information { public struct TextureInfo : IInfo { - public string name; - public byte[] textureData; + public readonly byte[] textureData; int width, height; public Type type => typeof(TextureData); - public TextureInfo(string name, int width, int height, byte[] textureData) { - this.name = name; + public TextureInfo(int width, int height, byte[] textureData) { this.width = width; this.height = height; this.textureData = textureData; diff --git a/RecrownedGTK/AssetsSystem/Loaders/TextureLoader.cs b/RecrownedGTK/AssetsSystem/Loaders/TextureLoader.cs index cecd18e..d07a9ea 100644 --- a/RecrownedGTK/AssetsSystem/Loaders/TextureLoader.cs +++ b/RecrownedGTK/AssetsSystem/Loaders/TextureLoader.cs @@ -12,7 +12,7 @@ namespace RecrownedGTK.AssetsSystem.Loaders { int width; int height; byte[] textureData = LoadPNG(path, out width, out height); - TextureInfo info = new TextureInfo(Path.GetFileName(path), width, height, textureData); + TextureInfo info = new TextureInfo(width, height, textureData); return info; }