From e9076f22fe2a49d1cd8933e54b7b00c5dd943269 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 12 Sep 2025 13:33:52 +0500 Subject: It compiles --- game/shared/world/item_registry.hh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'game/shared/world/item_registry.hh') diff --git a/game/shared/world/item_registry.hh b/game/shared/world/item_registry.hh index c3e6cf9..2274da2 100644 --- a/game/shared/world/item_registry.hh +++ b/game/shared/world/item_registry.hh @@ -9,12 +9,17 @@ // anywhere else in the shared and server code struct TextureGUI; +namespace world +{ +class Voxel; +} // namespace world + namespace world { struct ItemInfo final { std::string name; std::string texture; - voxel_id place_voxel; + const Voxel* place_voxel; resource_ptr cached_texture; // Client-side only }; @@ -29,7 +34,7 @@ public: public: ItemInfoBuilder& set_texture(std::string_view texture); - ItemInfoBuilder& set_place_voxel(voxel_id place_voxel); + ItemInfoBuilder& set_place_voxel(const Voxel* place_voxel); public: item_id build(void) const; -- cgit