the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "..\Minecraft.World\IconRegister.h"
5
6class StitchedTexture;
7class Texture;
8class BufferedImage;
9
10class TextureMap : public IconRegister
11{
12public:
13 static const wstring NAME_MISSING_TEXTURE;
14
15private:
16 const int iconType;
17
18 const wstring name;
19 const wstring path;
20 const wstring extension;
21
22 bool m_mipMap;
23
24 typedef unordered_map<wstring, StitchedTexture *> stringStitchedTextureMap;
25 stringStitchedTextureMap texturesByName; // = new HashMap<String, StitchedTexture>();
26 BufferedImage *missingTexture; // = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
27 StitchedTexture *missingPosition;
28 Texture *stitchResult;
29 vector<StitchedTexture *> animatedTextures; // = new ArrayList<StitchedTexture>();
30
31 stringStitchedTextureMap texturesToRegister; // = new HashMap<String, StitchedTexture>();
32
33public:
34 TextureMap(int type, const wstring &name, const wstring &path, BufferedImage *missingTexture, bool mipMap = false);
35
36 void stitch();
37 StitchedTexture *getTexture(const wstring &name);
38 void cycleAnimationFrames();
39 Texture *getStitchedTexture();
40
41 // 4J Stu - register is a reserved keyword in C++
42 Icon *registerIcon(const wstring &name);
43
44 int getIconType();
45 Icon *getMissingIcon();
46};