setup empty husk

This commit is contained in:
2024-06-10 20:11:25 +02:00
commit bf91297e83
8 changed files with 252 additions and 0 deletions

17
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.9...3.24 FATAL_ERROR)
project(solanaceae)
add_library(solanaceae_factorio
./factorio.hpp
./factorio.cpp
)
target_include_directories(solanaceae_factorio PUBLIC .)
target_compile_features(solanaceae_factorio PUBLIC cxx_std_17)
target_link_libraries(solanaceae_factorio PUBLIC
solanaceae_message3
)
########################################

16
src/factorio.cpp Normal file
View File

@ -0,0 +1,16 @@
#include "./factorio.hpp"
#include <solanaceae/message3/components.hpp>
#include <solanaceae/contact/components.hpp>
Factorio::Factorio(Contact3Registry& cr, RegistryMessageModel& rmm) : _cr(cr), _rmm(rmm) {
_rmm.subscribe(this, RegistryMessageModel_Event::message_construct);
}
Factorio::~Factorio(void) {
}
bool Factorio::onEvent(const Message::Events::MessageConstruct& e) {
return false;
}

17
src/factorio.hpp Normal file
View File

@ -0,0 +1,17 @@
#pragma once
#include <solanaceae/message3/registry_message_model.hpp>
class Factorio : public RegistryMessageModelEventI {
Contact3Registry& _cr;
RegistryMessageModel& _rmm;
public:
Factorio(Contact3Registry& cr, RegistryMessageModel& rmm);
virtual ~Factorio(void);
protected: // rmm
bool onEvent(const Message::Events::MessageConstruct& e) override;
};