diff --git a/TrueCraft.Client/Rendering/TexturePackExtensions.cs b/TrueCraft.Client/Rendering/TexturePackExtensions.cs deleted file mode 100644 index 7fa81ea..0000000 --- a/TrueCraft.Client/Rendering/TexturePackExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Microsoft.Xna.Framework.Graphics; -using System; -using TrueCraft.Core; -using Ionic.Zip; - -namespace TrueCraft.Client.Rendering -{ - public static class TexturePackExtensions - { - /// - /// - /// - /// - /// - /// - public static Texture2D GetTexture(this TexturePack instance, GraphicsDevice graphicsDevice, string entryName) - { - ZipEntry entry = null; - foreach (var item in instance.Archive.Entries) - { - if (item.FileName == entryName) - { - entry = item; - break; - } - } - - if (entry == null) - return null; - - Texture2D texture = null; - using (var reader = entry.OpenReader()) - texture = Texture2D.FromStream(graphicsDevice, reader); - return texture; - } - } -} diff --git a/TrueCraft.Client/TrueCraft.Client.csproj b/TrueCraft.Client/TrueCraft.Client.csproj index f752ac9..63564df 100644 --- a/TrueCraft.Client/TrueCraft.Client.csproj +++ b/TrueCraft.Client/TrueCraft.Client.csproj @@ -105,7 +105,6 @@ -