1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Add MetaDataRef:get_keys (#12841)

This commit is contained in:
Jude Melton-Houghton
2022-11-15 10:45:12 -05:00
committed by GitHub
parent 1a045da0dd
commit cd8a7fe472
20 changed files with 125 additions and 0 deletions

View File

@@ -6863,6 +6863,7 @@ and [`PlayerMetaRef`].
* `get_int(key)`: Returns `0` if key not present.
* `set_float(key, value)`
* `get_float(key)`: Returns `0` if key not present.
* `get_keys()`: returns a list of all keys in the metadata.
* `to_table()`: returns `nil` or a table with keys:
* `fields`: key-value storage
* `inventory`: `{list1 = {}, ...}}` (NodeMetaRef only)