diff options
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindTable.h')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindTable.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindTable.h b/Runtime/Lua/LuaBind/LuaBindTable.h new file mode 100644 index 0000000..3a6ec6c --- /dev/null +++ b/Runtime/Lua/LuaBind/LuaBindTable.h @@ -0,0 +1,15 @@ +#pragma once + +namespace LuaBind +{ + + class State; + + // 需要作为table传给lua的结构实现这个接口 + struct INativeTable + { + // 将结构转换为table并留在栈顶 + virtual void CastToTable(State& state) = 0; + }; + +}
\ No newline at end of file |