forked from ketoo/NoahGameFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial2.cpp
More file actions
40 lines (29 loc) · 720 Bytes
/
Tutorial2.cpp
File metadata and controls
40 lines (29 loc) · 720 Bytes
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
#include "Tutorial2.h"
#include "HelloWorld2.h"
#ifdef NF_DYNAMIC_PLUGIN
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
CREATE_PLUGIN(pm, Tutorial2)
};
NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
DESTROY_PLUGIN(pm, Tutorial2)
};
#endif
//////////////////////////////////////////////////////////////////////////
const int Tutorial2::GetPluginVersion()
{
return 0;
}
const std::string Tutorial2::GetPluginName()
{
return GET_CLASS_NAME(Tutorial2)
}
void Tutorial2::Install()
{
REGISTER_MODULE(pPluginManager, HelloWorld2, HelloWorld2)
}
void Tutorial2::Uninstall()
{
UNREGISTER_MODULE(pPluginManager, HelloWorld2, HelloWorld2)
}