diff options
Diffstat (limited to 'NorthstarDLL/plugins')
-rw-r--r-- | NorthstarDLL/plugins/pluginbackend.h | 6 | ||||
-rw-r--r-- | NorthstarDLL/plugins/plugins.h | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/NorthstarDLL/plugins/pluginbackend.h b/NorthstarDLL/plugins/pluginbackend.h index fc66a597..45cd42f3 100644 --- a/NorthstarDLL/plugins/pluginbackend.h +++ b/NorthstarDLL/plugins/pluginbackend.h @@ -17,7 +17,7 @@ union PluginRespondDataCallable class PluginDataRequest { - public: +public: PluginDataRequestType type; PluginRespondDataCallable func; PluginDataRequest(PluginDataRequestType type, PluginRespondDataCallable func) : type(type), func(func) {} @@ -25,11 +25,11 @@ class PluginDataRequest class PluginCommunicationHandler { - public: +public: void RunFrame(); void PushRequest(PluginDataRequestType type, PluginRespondDataCallable func); - public: +public: std::queue<PluginDataRequest> requestQueue = {}; std::mutex requestMutex; diff --git a/NorthstarDLL/plugins/plugins.h b/NorthstarDLL/plugins/plugins.h index d91b2811..4e841f27 100644 --- a/NorthstarDLL/plugins/plugins.h +++ b/NorthstarDLL/plugins/plugins.h @@ -5,7 +5,7 @@ const int IDR_RCDATA1 = 101; class Plugin { - public: +public: std::string name; std::string displayName; std::string dependencyName; @@ -23,7 +23,7 @@ class Plugin bool run_on_client = false; bool run_on_server = false; - public: +public: PLUGIN_INIT_TYPE init; PLUGIN_INIT_SQVM_TYPE init_sqvm_client; PLUGIN_INIT_SQVM_TYPE init_sqvm_server; @@ -37,10 +37,10 @@ class Plugin class PluginManager { - public: +public: std::vector<Plugin> m_vLoadedPlugins; - public: +public: bool LoadPlugins(); std::optional<Plugin> LoadPlugin(fs::path path, PluginInitFuncs* funcs, PluginNorthstarData* data); @@ -52,7 +52,7 @@ class PluginManager void RunFrame(); - private: +private: std::string pluginPath; }; |