Exploring raycasters and possibly make a little "doom like" game based on it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
raycaster/gui/guecstra.hpp

22 lines
533 B

#pragma once
#include "components.hpp"
#include "events.hpp"
#include <guecs/ui.hpp>
#include "textures.hpp"
namespace guecs {
Clickable make_action(DinkyECS::World& target, Events::GUI event);
Clickable make_action(DinkyECS::World& target, Events::GUI event, std::any data);
struct GrabSource {
DinkyECS::Entity world_entity;
std::function<void()> commit;
DinkyECS::Entity grab();
void move(sf::Vector2i position);
};
struct DropTarget {
std::function<bool(DinkyECS::Entity entity)> commit;
};
}