forked from Tr0n/client
Solution refactoring and restructuring, removed Boost dependency, removed unused tools
This commit is contained in:
26
src/UserInterface/PythonFlyModule.cpp
Normal file
26
src/UserInterface/PythonFlyModule.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
#include "stdafx.h"
|
||||
#include "../gamelib/FlyingObjectManager.h"
|
||||
PyObject * flyUpdate(PyObject * poSelf, PyObject * poArgs)
|
||||
{
|
||||
CFlyingManager::Instance().Update();
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
PyObject * flyRender(PyObject * poSelf, PyObject * poArgs)
|
||||
{
|
||||
CFlyingManager::Instance().Render();
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
void initfly()
|
||||
{
|
||||
static PyMethodDef s_methods[] =
|
||||
{
|
||||
{ "Update", flyUpdate, METH_VARARGS },
|
||||
{ "Render", flyRender, METH_VARARGS },
|
||||
|
||||
{ NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
Py_InitModule("fly", s_methods);
|
||||
}
|
Reference in New Issue
Block a user