Refactores item factories

This commit is contained in:
Johannes Wendel
2020-01-06 14:38:21 +01:00
parent 4a520fb12a
commit 83fe8675da
22 changed files with 50 additions and 46 deletions

View File

@@ -10,6 +10,7 @@
#include "output/DriverBoardPinController.h"
#include "ItemFactory.h"
#include "output/items/Lamp.h"
namespace flippR_driver
{
@@ -20,7 +21,7 @@ class LampFactory : ItemFactory
{
public:
explicit LampFactory(nlohmann::json & object, std::shared_ptr<DriverBoardPinController> pin_controller);
std::map<std::string, std::shared_ptr<items::Item>> getItemMap() override;
std::map<std::string, std::shared_ptr<items::Lamp>> getItemMap();
};
}