mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-22 10:29:48 +00:00
20 lines
No EOL
381 B
C++
20 lines
No EOL
381 B
C++
#pragma once
|
|
#include <unordered_map>
|
|
#include <sol/sol.hpp>
|
|
#include <vector>
|
|
|
|
class Level;
|
|
|
|
class PluginsManager {
|
|
public:
|
|
PluginsManager(Level& level);
|
|
|
|
void registerTypes();
|
|
|
|
void subscribe(std::string event, sol::function function);
|
|
private:
|
|
std::unordered_map<std::string, std::vector<sol::function>> m_callbacks;
|
|
|
|
sol::state m_lua;
|
|
Level& m_level;
|
|
}; |