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.
20 lines
519 B
20 lines
519 B
5 days ago
|
#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);
|
||
|
}
|
||
|
}
|
||
|
}
|