Nimbin[12]?SDL & Graphics / mapcreator / src/building/craft.hpp

mapcreator git · master

SDL3 2.5D game and engine using assets, with map editor

sdl3 c++ game engine map-editor cmake · first commit 2025-10-31 · last commit 2026-09-07 (1 month ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-spieleentwicklung/map_creator

C++ 99.3%
git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gz
src/building/craft.hpp 574 B · 27 lines 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();
}