From d0b4634429428bdde235f2965e9987d02f3006f4 Mon Sep 17 00:00:00 2001
From: MagicBot <MagicBot@magicbane.com>
Date: Wed, 20 Sep 2023 12:46:41 -0400
Subject: [PATCH] Framework to load pixel data

---
 src/engine/InterestManagement/HeightMap.java | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java
index f92546f0..8dffdcda 100644
--- a/src/engine/InterestManagement/HeightMap.java
+++ b/src/engine/InterestManagement/HeightMap.java
@@ -24,9 +24,13 @@ import java.awt.*;
 import java.awt.image.BufferedImage;
 import java.io.File;
 import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.util.HashMap;
+import java.util.stream.Stream;
 
 import static java.lang.Math.abs;
 
@@ -308,6 +312,17 @@ public class HeightMap {
         }
 
         Logger.info(HeightMap.heightmapByLoadNum.size() + " Heightmaps cached.");
+
+        // Load pixel data
+
+        try (Stream<Path> paths = Files.walk(Paths.get("mb.data/heightmaps/TARGA/"))) {
+            paths
+                    .filter(Files::isRegularFile)
+                    .forEach(System.out::println);
+        } catch (IOException e) {
+            Logger.error(e);
+        }
+
     }
 
     public static boolean isLocUnderwater(Vector3fImmutable currentLoc) {