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/building/craft.hpp raw
#pragma once
#include "building/building_data.hpp"
#include "inventory/item.hpp"
class Game;
namespace Craft {
extern ItemCrafting item;
void
draw_CraftMenu(Game* game, BuildingType type, bool hovering_craft_button);
bool
is_CursorOverMenuInfoPanel(const SDL_FPoint mouse_pos);
bool
cursor_OverCraftButton(const SDL_FPoint mouse_pos);
int
cursor_CraftGridTileIndex(SDL_FPoint mouse, SDL_Rect win_size);
bool
craft_Start(Inventory*, ItemType);
bool
craft_Continue(Inventory*, Messages*);
void
craft_Stop();
}