From 050c7f3be14560e30645761d8a543e9ff06a2bb1 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 6 Oct 2024 12:47:04 +0200 Subject: [PATCH] update for rmmi --- plugins/plugin_factorio.cpp | 2 +- src/factorio.cpp | 2 +- src/factorio.hpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/plugin_factorio.cpp b/plugins/plugin_factorio.cpp index 401e998..e0af4f7 100644 --- a/plugins/plugin_factorio.cpp +++ b/plugins/plugin_factorio.cpp @@ -35,7 +35,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api) try { auto* conf = PLUG_RESOLVE_INSTANCE(ConfigModelI); auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1"); - auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModel); + auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModelI); // static store, could be anywhere tho // construct with fetched dependencies diff --git a/src/factorio.cpp b/src/factorio.cpp index 0630841..76ae4d8 100644 --- a/src/factorio.cpp +++ b/src/factorio.cpp @@ -16,7 +16,7 @@ void Factorio::sendToLinked(const std::string& message) { } } -Factorio::Factorio(ConfigModelI& conf, Contact3Registry& cr, RegistryMessageModel& rmm, FactorioLogParser& flp) : +Factorio::Factorio(ConfigModelI& conf, Contact3Registry& cr, RegistryMessageModelI& rmm, FactorioLogParser& flp) : _cr(cr), _rmm(rmm), _flp(flp) diff --git a/src/factorio.hpp b/src/factorio.hpp index cfca108..209ff81 100644 --- a/src/factorio.hpp +++ b/src/factorio.hpp @@ -11,7 +11,7 @@ struct ConfigModelI; class Factorio : public RegistryMessageModelEventI, public FactorioLogParserEventI { Contact3Registry& _cr; - RegistryMessageModel& _rmm; + RegistryMessageModelI& _rmm; FactorioLogParser& _flp; std::vector _linked_contacts; @@ -19,7 +19,7 @@ class Factorio : public RegistryMessageModelEventI, public FactorioLogParserEven void sendToLinked(const std::string& message); public: - Factorio(ConfigModelI& conf, Contact3Registry& cr, RegistryMessageModel& rmm, FactorioLogParser& flp); + Factorio(ConfigModelI& conf, Contact3Registry& cr, RegistryMessageModelI& rmm, FactorioLogParser& flp); virtual ~Factorio(void); protected: // rmm