Skip to content

Commit

Permalink
Missing InvokeEvent method
Browse files Browse the repository at this point in the history
  • Loading branch information
Segfaultd committed Nov 14, 2023
1 parent ce7cbe1 commit 43adc52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion code/framework/src/scripting/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <logging/logger.h>
#include <regex>

#include "engines/node/engine.h"
#include "module.h"

#include "core_modules.h"
Expand Down
8 changes: 6 additions & 2 deletions code/framework/src/scripting/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "engine_kind.h"
#include "engines/callback.h"
#include "engines/engine.h"
#include "engines/node/engine.h"
#include "errors.h"

namespace Framework::Scripting {
Expand Down Expand Up @@ -44,8 +45,11 @@ namespace Framework::Scripting {
return;
}

// TODO: fix me
// _engine->InvokeEvent(name, std::forward<Args>(args)...);
switch(_engineType){
case EngineTypes::ENGINE_NODE: {
reinterpret_cast<Engines::Node::Engine*>(_engine)->InvokeEvent(name, std::forward<Args>(args)...);
} break;
}
}

Engines::IEngine *GetEngine() const {
Expand Down

0 comments on commit 43adc52

Please sign in to comment.