]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/world.cpp
eat what's here
[blobs.git] / src / world / world.cpp
index 56923cf6500fb6995bfa7a9a3edac59c57a8c59a..449307abeefbeeb88ea148171600aed8b2e1a596 100644 (file)
@@ -290,6 +290,10 @@ Planet::Planet(int sidelength)
 Planet::~Planet() {
 }
 
+const TileType &Planet::TypeAt(int surface, int x, int y) const {
+       return GetSimulation().TileTypes()[TileAt(surface, x, y).type];
+}
+
 glm::dvec3 Planet::TileCenter(int surface, int x, int y) const noexcept {
        glm::dvec3 center(0.0f);
        center[(surface + 0) % 3] = x + 0.5 - Radius();