forked from PolymorphEngine/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginCore.cpp
More file actions
53 lines (43 loc) · 1.52 KB
/
Copy pathPluginCore.cpp
File metadata and controls
53 lines (43 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "PluginCore.hpp"
#include "ComponentFactory.hpp"
#include "SerializableObjectFactory.hpp"
#include "polymorph/engine/api/plugin/Symbols.hpp"
namespace polymorph::engine::api
{
PluginCore::PluginCore(config::XmlNode &data, Engine &game,
std::string PluginsPath)
: APlugin(data, game, PluginsPath)
{
}
void PluginCore::preUpdateInternalSystems(std::shared_ptr<Scene> &scene)
{
}
void PluginCore::updateInternalSystems(std::shared_ptr<Scene> &scene)
{
}
void PluginCore::postUpdateInternalSystems(std::shared_ptr<Scene> &scene)
{
}
void PluginCore::startScripts(std::shared_ptr<Scene> &scene)
{
}
void PluginCore::endScripts(std::shared_ptr<Scene> &scene)
{
}
void PluginCore::createConfig(std::vector<std::shared_ptr<APluginConfig>> &configs)
{
}
std::unique_ptr<AComponentFactory> PluginCore::createComponentFactory()
{
return std::unique_ptr<AComponentFactory>(new ComponentFactory());
}
std::unique_ptr<ASerializableObjectFactory> PluginCore::createSerializableObjectFactory()
{
return std::unique_ptr<ASerializableObjectFactory>(new SerializableObjectFactory());
}
}
EXPORT_MODULE polymorph::engine::api::APlugin *createPlugin(polymorph::engine::config::XmlNode &data,
polymorph::engine::Engine &game, std::string PluginsPath)
{
return new polymorph::engine::api::PluginCore(data, game, std::move(PluginsPath));
}