载入中...
搜索中...
未找到
ModuleRegistryState.h
浏览该文件的文档.
1#pragma once
2
3// Private registry layout shared only by the two implementation translation units.
4#include <unordered_map>
5#include <vector>
6#include "common/Module.h"
7
8namespace eve {
10 struct ModuleInfo {
11 creator_t creator = nullptr;
12 exposer_t exposer = nullptr;
13 Module* instance = nullptr;
14 bool exposed = false;
15 std::string owner;
16 };
17 std::unordered_map<std::string, ModuleInfo> registered_modules;
19 std::vector<std::string> plugin_registration_added_;
22 std::unordered_map<std::string, ModuleInfo> plugin_registration_previous_;
23 std::vector<std::pair<std::string, ModuleInfo>> retired_modules_;
24 std::unordered_map<std::string, std::vector<std::string>> plugin_binding_keys_;
25 ssq::VM* active_vm_ = nullptr;
27};
28} // namespace eve
Module *(* creator_t)()
Definition Module.h:59
void(* exposer_t)(ssq::Table &)
Definition Module.h:60
EVENGINE_API_FOUNDATION public API.
Definition Module.h:48
EVENGINE_API_FOUNDATION public API.
Definition Runtime.h:189
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
std::unordered_map< std::string, ModuleInfo > registered_modules
std::unordered_map< std::string, std::vector< std::string > > plugin_binding_keys_
std::vector< std::pair< std::string, ModuleInfo > > retired_modules_
std::unordered_map< std::string, ModuleInfo > plugin_registration_previous_
std::vector< std::string > plugin_registration_added_