#include "moTypes.h"
#include <string>
#include <vector>
#include <list>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
#define DECLARE_SCRIPT_CLASS |
( |
|
ClassName | ) |
|
Value:public: \
static const char className[]; \
\
bool isExisting; \
bool isPrecious;
Definition at line 603 of file moLuna.h.
#define DEFINE_SCRIPT_CLASS_FUNCTIONS |
( |
|
ClassName | ) |
moLuna<ClassName>::FunctionType ClassName::Functions[] = { |
#define DEFINE_SCRIPT_CLASS_PROPERTIES |
( |
|
ClassName | ) |
moLuna<ClassName>::PropertyType ClassName::Properties[] = { |
#define END_SCRIPT_CLASS_FUNCTIONS }; |
LIST MUST END WITH NULL VALUE: LIKE { 0, 0 }
Definition at line 621 of file moLuna.h.
#define END_SCRIPT_CLASS_PROPERTIES }; |
#define IMPLEMENT_SCRIPT_CLASS |
( |
|
ClassName | ) |
const char ClassName::className[] = #ClassName; |
#define REGISTER_CLASS |
( |
|
ClassName, |
|
|
|
LuaState |
|
) |
| moLuna<ClassName>::Register(LuaState); |
#define SCRIPT_CONSTRUCTOR_DECLARATION |
( |
|
ClassName | ) |
ClassName(lua_State* L); |
#define SCRIPT_CONSTRUCTOR_IMPLEMENTATION |
( |
|
ClassName | ) |
ClassName::ClassName(lua_State* L) |
#define SCRIPT_FUNCTION |
( |
|
ClassName, |
|
|
|
FunctionName |
|
) |
| { #FunctionName, &ClassName::FunctionName } |
#define SCRIPT_FUNCTION_DECLARATION |
( |
|
FunctionName | ) |
int FunctionName(lua_State* L); |
#define SCRIPT_FUNCTION_IMPLEMENTATION |
( |
|
ClassName, |
|
|
|
FunctionName |
|
) |
| int ClassName::FunctionName(lua_State* L) |
#define SCRIPT_PROPERTY |
( |
|
ClassName, |
|
|
|
PropertyName, |
|
|
|
PropertyGetter, |
|
|
|
PropertySetter |
|
) |
| { #PropertyName, &ClassName::PropertyGetter, &ClassName::PropertySetter } |