1 #ifndef GAME_MENUS_STORAGEGRID_HPP
2 #define GAME_MENUS_STORAGEGRID_HPP
4 #include <BLIB/Graphics.hpp>
5 #include <BLIB/Resources.hpp>
37 void activate(bl::ecs::Entity background);
49 void update(
const std::vector<core::pplmn::StoredPeoplemon>& box);
59 bl::engine::Engine& engine;
60 bl::gfx::Dummy2D background;
61 std::list<bl::gfx::Sprite> peoplemon;
Parent namespace for all functionality unique to the game.
Renderer for the grid of peoplemon in a storage box.
void notifyOffset(float offset)
Applies the given offset to the grid position. Used for sliding in and out.
void deactivate()
Removes the content from the scene and releases entities.
void activate(bl::ecs::Entity background)
Sets the parent of the grid rectangle to the background.
void update(const std::vector< core::pplmn::StoredPeoplemon > &box)
Updates the set of peoplemon to render.
static constexpr glm::vec2 BoxPosition
static constexpr glm::vec2 BoxSize
StorageGrid(bl::engine::Engine &engine)
Initializes the grid to be empty.