Skip to content

Commit

Permalink
update for rmmi
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Oct 6, 2024
1 parent 4c6beb5 commit 050c7f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/plugin_factorio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/factorio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/factorio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ struct ConfigModelI;

class Factorio : public RegistryMessageModelEventI, public FactorioLogParserEventI {
Contact3Registry& _cr;
RegistryMessageModel& _rmm;
RegistryMessageModelI& _rmm;
FactorioLogParser& _flp;

std::vector<Contact3Handle> _linked_contacts;

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
Expand Down

0 comments on commit 050c7f3

Please sign in to comment.