diff options
author | chai <chaifix@163.com> | 2019-03-12 00:39:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-12 00:39:26 +0800 |
commit | 70b82d1981c0de3c7b77670ff8abcfeb26815142 (patch) | |
tree | f69c05bcd204cc3f9bf745be37a2ba5911e52436 /Source/3rdParty/Luax/luax.h | |
parent | c19a282e10f51ddd50d198b903f8fbd5a2238b62 (diff) |
*misc
Diffstat (limited to 'Source/3rdParty/Luax/luax.h')
-rw-r--r-- | Source/3rdParty/Luax/luax.h | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/Source/3rdParty/Luax/luax.h b/Source/3rdParty/Luax/luax.h index 68ff9f2..66162a4 100644 --- a/Source/3rdParty/Luax/luax.h +++ b/Source/3rdParty/Luax/luax.h @@ -1,11 +1,8 @@ #ifndef __LUAX_H__ #define __LUAX_H__ -extern "C" { -#include "lua.h" -#include "lualib.h" -#include "lauxlib.h" -} +// moai-coreг + // include lua.hpp before this #include "luax_runtime.h" #include "luax_state.h" @@ -17,5 +14,38 @@ extern "C" { // * modules // * class // * +/* + +GetClassName +GetClass +New +Extend +GetInterfaceTable + + + +__index +__newIndex +__gc +__mode +__tostring + + + +ݳԱҪʣֵ͵õֵͨʵ֣__indexΪԪ + +ƿռͨʵ + +ͨupvalueʵֵߵķʣҪͨselfͨBaseClass.Extend("SubClass")BaseClassֲͬbase class +BaseClassΪExtendupvaluecfunctionͨlua_upvalueindexupvalue + +֮ͨ.úΪԪԪԸuserdatatableΪԪuserdataԵãʵϲҪ + +interface table -> member table +member table -> ref table +ref table -> userdata ˶ÿ͵úühLuaUserdataΪkey)Ϊdebug + +class table ͵ı壨NewExtendGetClassName +*/ #endif
\ No newline at end of file |