2024-06-01 15:57:23 -05:00

28 lines
607 B
C++

#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);
}
//martysama0134's 2e58d0b8baeb072acdf3afc4a5d1999f