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.
19 lines
519 B
19 lines
519 B
#include "devices.hpp"
|
|
#include "events.hpp"
|
|
|
|
namespace components {
|
|
void StairsDown(DinkyECS::Entity player_ent, json &, DinkyECS::World &world) {
|
|
world.send<Events::GUI>(Events::GUI::STAIRS, player_ent, {});
|
|
}
|
|
|
|
void StairsUp(DinkyECS::Entity player_ent, json &, DinkyECS::World &world) {
|
|
|
|
world.send<Events::GUI>(Events::GUI::STAIRS, player_ent, {});
|
|
}
|
|
|
|
void Device::hit(DinkyECS::Entity ent, DinkyECS::World &world) {
|
|
for(auto& action : actions) {
|
|
action(ent, config, world);
|
|
}
|
|
}
|
|
}
|
|
|