minetest/src/script
Loïc Blot b7a98e9850 Implement player attribute backend (#4155)
* This backend permit mods to store extra players attributes to a common interface.
* Add the obj:set_attribute(attr, value) Lua call
* Add the obj:get_attribute(attr) Lua call

Examples:
* player:set_attribute("home:home", "10,25,-78")
* player:get_attribute("default:mana")

Attributes are saved as a json in the player file in extended_attributes
key

They are saved only if a modification on the attributes occurs and loaded
when emergePlayer is called (they are attached to PlayerSAO).
2017-01-27 08:59:30 +01:00
..
common Add hardware node coloring. Includes: 2017-01-23 07:27:12 +01:00
cpp_api Add hardware node coloring. Includes: 2017-01-23 07:27:12 +01:00
lua_api Implement player attribute backend (#4155) 2017-01-27 08:59:30 +01:00
CMakeLists.txt Clean up and tweak build system 2015-03-27 15:00:48 -04:00
scripting_game.cpp Add Lua interface to HTTPFetchRequest 2016-02-22 15:39:41 +01:00
scripting_game.h Improve Script CPP API diagnostics 2015-08-05 21:13:03 -04:00
scripting_mainmenu.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
scripting_mainmenu.h Fix code style of async API 2014-04-27 16:15:53 -04:00