From 73cbcdd6e8c849e32abbf9757e603e6a6654e870 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 12 Sep 2025 14:09:34 +0500 Subject: Metaitems --- game/shared/game_items.hh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'game/shared/game_items.hh') diff --git a/game/shared/game_items.hh b/game/shared/game_items.hh index 099923f..88952fc 100644 --- a/game/shared/game_items.hh +++ b/game/shared/game_items.hh @@ -2,20 +2,22 @@ #define SHARED_GAME_ITEMS 1 #pragma once -#include "shared/types.hh" +namespace world +{ +class Item; +} // namespace world namespace game_items { -extern item_id stone; -extern item_id cobblestone; -extern item_id dirt; -extern item_id grass; -extern item_id oak_leaves; -extern item_id oak_planks; -extern item_id oak_log; -extern item_id glass; -extern item_id slime; -extern item_id mud; +extern const world::Item* stone; +extern const world::Item* cobblestone; +extern const world::Item* dirt; +extern const world::Item* grass; +extern const world::Item* oak_leaves; +extern const world::Item* oak_planks; +extern const world::Item* oak_log; +extern const world::Item* glass; +extern const world::Item* slime; } // namespace game_items namespace game_items -- cgit