mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Implement vector and node conversion in Lua (#12609)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
23e9f5db43
commit
b38ffdec27
29 changed files with 191 additions and 167 deletions
|
@ -56,8 +56,14 @@ enum {
|
|||
CUSTOM_RIDX_CURRENT_MOD_NAME,
|
||||
CUSTOM_RIDX_BACKTRACE,
|
||||
CUSTOM_RIDX_HTTP_API_LUA,
|
||||
CUSTOM_RIDX_VECTOR_METATABLE,
|
||||
CUSTOM_RIDX_METATABLE_MAP,
|
||||
|
||||
// The following four functions are implemented in Lua because LuaJIT can
|
||||
// trace them and optimize tables/string better than from the C API.
|
||||
CUSTOM_RIDX_READ_VECTOR,
|
||||
CUSTOM_RIDX_PUSH_VECTOR,
|
||||
CUSTOM_RIDX_READ_NODE,
|
||||
CUSTOM_RIDX_PUSH_NODE,
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue