mapcreator git · master
SDL3 2.5D game and engine using assets, with map editor
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gzsrc/resource/resource.cpp raw
#include "resource/resource.hpp"
#include "inventory/item.hpp"
bool Resource::is_Collectable(ItemType item = ItemType::HAND) {
if ( collecting_methode == CollectingMethode::HAND)
return true;
if (collecting_methode == CollectingMethode::PICKAXE_STONE && item == ItemType::PICKAXE_STONE)
return true;
return false;
}