UGDK
Namespaces | Defines | Functions
src/pyramidworks/modules.cc File Reference
#include <cstdio>
#include <ugdk/script/module.h>
#include <ugdk/script/languages/lua/luawrapper.h>
#include <ugdk/script/languages/python/pythonwrapper.h>
Include dependency graph for modules.cc:

Namespaces

namespace  pyramidworks

Defines

#define PYRAMIDWORKS_MODULES_NUM   2
#define PYRAMIDWORKS_MODULES_LIST(ACTION)
#define PYRAMIDWORKSLUA_DECLARE_INIT(name)   extern int luaopen_pyramidworks_##name(lua_State*);
 WHAT WIZARDY IS THIS!?
#define PYRAMIDWORKSPYTHON_DECLARE_INIT(name)   extern void init_pyramidworks_##name(void);
#define PYRAMIDWORKSLUA_LIST_ITEM(name)   ugdk::script::Module<lua_CFunction>("pyramidworks."#name, luaopen_pyramidworks_##name),
#define PYRAMIDWORKSPYTHON_LIST_ITEM(name)   Module<PyInitFunction>("_pyramidworks_"#name, init_pyramidworks_##name),

Functions

void pyramidworks::RegisterLuaModules (ugdk::script::lua::LuaWrapper *wrapper)
 Loads all PYRAMIDWORKS's Lua modules using the given wrapper.
void pyramidworks::RegisterPythonModules (ugdk::script::python::PythonWrapper *wrapper)
 Loads all PYRAMIDWORKS's Python modules using the given wrapper.

Define Documentation

#define PYRAMIDWORKS_MODULES_LIST (   ACTION)
Value:
ACTION(collision) \
    ACTION(geometry)
#define PYRAMIDWORKS_MODULES_NUM   2
#define PYRAMIDWORKSLUA_DECLARE_INIT (   name)    extern int luaopen_pyramidworks_##name(lua_State*);

WHAT WIZARDY IS THIS!?

#define PYRAMIDWORKSLUA_LIST_ITEM (   name)    ugdk::script::Module<lua_CFunction>("pyramidworks."#name, luaopen_pyramidworks_##name),
#define PYRAMIDWORKSPYTHON_DECLARE_INIT (   name)    extern void init_pyramidworks_##name(void);
#define PYRAMIDWORKSPYTHON_LIST_ITEM (   name)    Module<PyInitFunction>("_pyramidworks_"#name, init_pyramidworks_##name),
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines