aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Minimap.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Minimap.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Minimap.h')
-rw-r--r--Minecraft.Client/Minimap.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Minecraft.Client/Minimap.h b/Minecraft.Client/Minimap.h
new file mode 100644
index 00000000..758d8a8a
--- /dev/null
+++ b/Minecraft.Client/Minimap.h
@@ -0,0 +1,35 @@
+#pragma once
+#include "..\Minecraft.World\MapItem.h"
+class Options;
+class Font;
+class Textures;
+class Player;
+class MapItemSavedData;
+
+class Minimap
+{
+private:
+ static const int w = MapItem::IMAGE_WIDTH;
+ static const int h = MapItem::IMAGE_HEIGHT;
+#ifdef __ORBIS__
+ static short LUT[256]; // 4J added
+#else
+ static int LUT[256]; // 4J added
+#endif
+ static bool genLUT; // 4J added
+ int renderCount; // 4J added
+ bool m_optimised; // 4J Added
+#ifdef __ORBIS__
+ shortArray pixels;
+#else
+ intArray pixels;
+#endif
+ int mapTexture;
+ Options *options;
+ Font *font;
+
+public:
+ Minimap(Font *font, Options *options, Textures *textures, bool optimised = true); // 4J Added optimised param
+ static void reloadColours();
+ void render(shared_ptr<Player> player, Textures *textures, shared_ptr<MapItemSavedData> data, int entityId); // 4J added entityId param
+};