mirror of
https://github.com/mt-mods/xcompat.git
synced 2025-06-30 15:30:39 +02:00
add player compatibility api (#41)
This commit is contained in:
13
doc/player.md
Normal file
13
doc/player.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Player API
|
||||
|
||||
mimic mtg player_api
|
||||
|
||||
## NOTE
|
||||
|
||||
`xcompat.player.player_attached`
|
||||
|
||||
read/write from it is fine, looping over it is not as it is a proxy table. this
|
||||
would need lua5.2 __pairs/__ipairs metamethods support which i could polyfill
|
||||
for using https://stackoverflow.com/a/77354254 but didnt feel like doing at
|
||||
this time. (luajit supports this via 5.2 extensions). additionally see issue:
|
||||
https://github.com/minetest/minetest/issues/15133
|
Reference in New Issue
Block a user