From 68694a9c9d7d27d3b79c7b96bb67f56db2f75c45 Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 18:18:08 +0500 Subject: Metadata voxels! --- game/shared/world/ray_dda.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game/shared/world/ray_dda.hh') diff --git a/game/shared/world/ray_dda.hh b/game/shared/world/ray_dda.hh index 54bd48a..3071be2 100644 --- a/game/shared/world/ray_dda.hh +++ b/game/shared/world/ray_dda.hh @@ -7,6 +7,7 @@ namespace world { class Dimension; +class Voxel; } // namespace world namespace world @@ -20,7 +21,7 @@ public: void reset(const Dimension* dimension, const chunk_pos& start_chunk, const glm::fvec3& start_fpos, const glm::fvec3& direction); void reset(const Dimension& dimension, const chunk_pos& start_chunk, const glm::fvec3& start_fpos, const glm::fvec3& direction); - voxel_id step(void); + const Voxel* step(void); public: const Dimension* dimension; -- cgit From f210a86c1406ccc6dfd6f14181dd7a1274ee0de4 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 12 Sep 2025 15:09:01 +0500 Subject: Random ticking? In my game?! Hell yeah! --- game/shared/world/ray_dda.hh | 4 ---- 1 file changed, 4 deletions(-) (limited to 'game/shared/world/ray_dda.hh') diff --git a/game/shared/world/ray_dda.hh b/game/shared/world/ray_dda.hh index 3071be2..110e3d4 100644 --- a/game/shared/world/ray_dda.hh +++ b/game/shared/world/ray_dda.hh @@ -1,5 +1,3 @@ -#ifndef SHARED_RAY_DDA -#define SHARED_RAY_DDA 1 #pragma once #include "shared/types.hh" @@ -38,5 +36,3 @@ public: voxel_pos vpos; }; } // namespace world - -#endif // SHARED_RAY_DDA -- cgit