diff options
Diffstat (limited to 'game/shared/world/item_registry.hh')
| -rw-r--r-- | game/shared/world/item_registry.hh | 9 |
1 files changed, 7 insertions, 2 deletions
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 @@ -11,10 +11,15 @@ 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<TextureGUI> 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;
|
