#pragma once #include "dinkyecs.hpp" #include #include namespace components { using namespace nlohmann; typedef std::function Action; void StairsDown(DinkyECS::Entity player_ent, json &data, DinkyECS::World &world); void StairsUp(DinkyECS::Entity player_ent, json &data, DinkyECS::World &world); struct Device { json config; std::vector actions; void hit(DinkyECS::Entity ent, DinkyECS::World &world); }; }