* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
60 lines
2.0 KiB
C++
60 lines
2.0 KiB
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "Common\App_enums.h"
|
|
|
|
class InputStream;
|
|
class Minecraft;
|
|
class ArchiveFile;
|
|
|
|
class TexturePack
|
|
{
|
|
public:
|
|
|
|
TexturePack() { m_bHasAudio=false;}
|
|
virtual bool hasData() = 0;
|
|
virtual bool hasAudio() { return m_bHasAudio;}
|
|
virtual void setHasAudio(bool bVal) {m_bHasAudio=bVal;}
|
|
virtual bool isLoadingData() = 0;
|
|
virtual void loadData() {}
|
|
virtual void unload(Textures *textures) = 0;
|
|
virtual void load(Textures *textures) = 0;
|
|
virtual InputStream *getResource(const wstring &name, bool allowFallback) = 0;// throws IOException;
|
|
//virtual InputStream *getResource(const wstring &name) = 0;// throws IOException;
|
|
virtual DWORD getId() = 0;
|
|
virtual wstring getName() = 0;
|
|
virtual wstring getDesc1() = 0;
|
|
virtual wstring getDesc2() = 0;
|
|
virtual bool hasFile(const wstring &name, bool allowFallback) = 0;
|
|
virtual bool isTerrainUpdateCompatible() = 0;
|
|
|
|
virtual wstring getResource(const wstring& name) // 4J - changed to just return a name rather than an input stream
|
|
{
|
|
/* 4J - TODO
|
|
return TexturePack.class.getResourceAsStream(name);
|
|
*/
|
|
return name;
|
|
}
|
|
virtual DLCPack * getDLCPack() { return NULL;}
|
|
|
|
|
|
// 4J Added
|
|
virtual wstring getPath(bool bTitleUpdateTexture = false, const char *pchBDPatchFilename=NULL);
|
|
virtual wstring getAnimationString(const wstring &textureName, const wstring &path, bool allowFallback) = 0;
|
|
virtual BufferedImage *getImageResource(const wstring& File, bool filenameHasExtension = false, bool bTitleUpdateTexture=false, const wstring &drive =L"") = 0;
|
|
virtual void loadColourTable() = 0;
|
|
virtual void loadUI() = 0;
|
|
virtual void unloadUI() = 0;
|
|
virtual wstring getXuiRootPath() = 0;
|
|
virtual PBYTE getPackIcon(DWORD &dwImageBytes) = 0;
|
|
virtual PBYTE getPackComparison(DWORD &dwImageBytes) = 0;
|
|
virtual unsigned int getDLCParentPackId() = 0;
|
|
virtual unsigned char getDLCSubPackId() = 0;
|
|
virtual ColourTable *getColourTable() = 0;
|
|
virtual ArchiveFile *getArchiveFile() = 0;
|
|
|
|
private:
|
|
bool m_bHasAudio;
|
|
|
|
};
|