lower cmake version and start drafting mcd
This commit is contained in:
parent
0e27cf4476
commit
317bd5bb52
2
external/CMakeLists.txt
vendored
2
external/CMakeLists.txt
vendored
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
||||||
|
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
|
2
external/toxcore/CMakeLists.txt
vendored
2
external/toxcore/CMakeLists.txt
vendored
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
||||||
|
|
||||||
if (NOT TARGET toxcore)
|
if (NOT TARGET toxcore)
|
||||||
|
|
||||||
|
27
src/message_command_dispatcher.cpp
Normal file
27
src/message_command_dispatcher.cpp
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#include "./message_command_dispatcher.hpp"
|
||||||
|
|
||||||
|
#include <solanaceae/util/config_model.hpp>
|
||||||
|
|
||||||
|
MessageCommandDispatcher::MessageCommandDispatcher(
|
||||||
|
Contact3Registry& cr,
|
||||||
|
RegistryMessageModel& rmm,
|
||||||
|
ConfigModelI& conf
|
||||||
|
) :
|
||||||
|
_cr(cr), _rmm(rmm), _conf(conf)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
MessageCommandDispatcher::~MessageCommandDispatcher(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void MessageCommandDispatcher::iterate(float time_delta) {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MessageCommandDispatcher::onEvent(const Message::Events::MessageConstruct& e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MessageCommandDispatcher::onEvent(const Message::Events::MessageUpdated& e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
35
src/message_command_dispatcher.hpp
Normal file
35
src/message_command_dispatcher.hpp
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <solanaceae/message3/registry_message_model.hpp>
|
||||||
|
|
||||||
|
// fwd
|
||||||
|
struct ConfigModelI;
|
||||||
|
|
||||||
|
class MessageCommandDispatcher : public RegistryMessageModelEventI {
|
||||||
|
Contact3Registry& _cr;
|
||||||
|
RegistryMessageModel& _rmm;
|
||||||
|
ConfigModelI& _conf;
|
||||||
|
|
||||||
|
public:
|
||||||
|
MessageCommandDispatcher(Contact3Registry& cr, RegistryMessageModel& rmm, ConfigModelI& conf);
|
||||||
|
~MessageCommandDispatcher(void);
|
||||||
|
|
||||||
|
void iterate(float time_delta); // do we?
|
||||||
|
|
||||||
|
// module command/command <param type(s)>
|
||||||
|
// permissions?
|
||||||
|
// - user(s)
|
||||||
|
// - group(s)
|
||||||
|
// - everyone else?
|
||||||
|
// callable
|
||||||
|
// help text?
|
||||||
|
void registerCommand(
|
||||||
|
std::string_view module,
|
||||||
|
std::string_view command
|
||||||
|
);
|
||||||
|
|
||||||
|
protected: // mm
|
||||||
|
bool onEvent(const Message::Events::MessageConstruct& e) override;
|
||||||
|
bool onEvent(const Message::Events::MessageUpdated& e) override;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user