1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

MetaDataRef: Add contains() and get() (#7214)

This commit is contained in:
rubenwardy 2018-04-30 17:42:51 +01:00 committed by SmallJoker
parent 54606e103d
commit 0b5b32b026
8 changed files with 72 additions and 6 deletions

View file

@ -107,6 +107,8 @@ void PlayerMetaRef::Register(lua_State *L)
// clang-format off
const char PlayerMetaRef::className[] = "PlayerMetaRef";
const luaL_Reg PlayerMetaRef::methods[] = {
luamethod(MetaDataRef, contains),
luamethod(MetaDataRef, get),
luamethod(MetaDataRef, get_string),
luamethod(MetaDataRef, set_string),
luamethod(MetaDataRef, get_int),