-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEvolPythonPlugin.cpp
More file actions
52 lines (44 loc) · 1.06 KB
/
EvolPythonPlugin.cpp
File metadata and controls
52 lines (44 loc) · 1.06 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
#include <BaseLib/xEvol3DBaseInc.h>
#include <Application/xPluginMgr.h>
#include <BaseLib/xStringHash.h>
using namespace XEvol3D;
//=====================
static wchar_t* g_ObjectList[] =
{
NULL
};
class xEvolPythonObjPlugin : public IPluginObject
{
bool start(const wchar_t* pluginName , const wchar_t* pluginPath)
{
return true;
}
void info(xPluginInfo* info)
{
wcsncpy(info->m_Description , L"Evol3D Python Object" , 256);
info->m_ID = xStringHash(L"Evol3D Python Object Plugin");
wcsncpy(info->m_Name , L"Evol3D Python Object Plugin" , 32);
info->m_Type = ePT_ObjectCreator;
}
bool stop()
{
return true;
}
unsigned int nObject()
{
return 4;
}
void* createObject(const wchar_t* objName, const wchar_t * arg)
{
return NULL;
}
const wchar_t** objectList()
{
return (const wchar_t**)g_ObjectList;
}
};
extern "C" _declspec(dllexport) IPluginObject* PLUGIN_ENTRYPOINT()
{
static xEvolPythonObjPlugin gPluginObject;
return &gPluginObject;
}