#include "moTypes.h"
#include <string>
#include <vector>
#include <list>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
 
Ir al código fuente de este archivo.
      
        
          | #define DECLARE_SCRIPT_CLASS | 
          ( | 
            | 
          ClassName | ) | 
           | 
        
      
 
Valor:public:                                             \
    static const char className[];                      \
\
    bool isExisting; \
  bool isPrecious;
 
Definición en la línea 603 del archivo 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 } 
Definición en la línea 621 del archivo 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 } |