mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 16:23:36 +00:00
32 lines
628 B
C++
32 lines
628 B
C++
#pragma once
|
|
#include "AbstractTexturePack.h"
|
|
// class ZipFile;
|
|
class BufferedImage;
|
|
class File;
|
|
class Textures;
|
|
|
|
class FileTexturePack : public AbstractTexturePack {
|
|
private:
|
|
// ZipFile *zipFile;
|
|
|
|
public:
|
|
FileTexturePack(std::uint32_t id, File* file, TexturePack* fallback);
|
|
|
|
//@Override
|
|
void unload(Textures* textures);
|
|
|
|
protected:
|
|
InputStream* getResourceImplementation(
|
|
const std::wstring& name); // throws IOException
|
|
|
|
public:
|
|
//@Override
|
|
bool hasFile(const std::wstring& name);
|
|
|
|
private:
|
|
void loadZipFile(); // throws IOException
|
|
|
|
public:
|
|
bool isTerrainUpdateCompatible();
|
|
};
|