Skip to content

File SignalDispatch.hpp

File List > Engine > include > Scripting > SignalDispatch.hpp

Go to the documentation of this file

#ifndef ENGINE_SCRIPTING_SIGNALDISPATCH_HPP_
#define ENGINE_SCRIPTING_SIGNALDISPATCH_HPP_

#include "ECS/Entity.hpp"

#include <string>
#include <string_view>
#include <vector>

namespace Engine {
class Registry;
}

namespace Engine::Signals {

void EmitSignal(Registry& registry, Entity emitter, const std::string& signal, Entity other);

struct SignalProvider {
    std::string_view plugin;
    std::vector<std::string_view> signals;
};

std::vector<SignalProvider> GetSignalProviders();

} // namespace Engine::Signals

#endif // ENGINE_SCRIPTING_SIGNALDISPATCH_HPP_