]> git.lizzy.rs Git - dragonfireclient.git/commit
Add static_save property to luaentites to not save them statically. (#5112)
authororwell96 <mono96.mml@gmail.com>
Thu, 28 Sep 2017 15:11:51 +0000 (17:11 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 28 Sep 2017 15:11:51 +0000 (17:11 +0200)
commit08846cd05cd402cc7f8d025aaba96c5bb0aade2c
tree5c77ab4c23397bcb36bc9add361605296dcd3e0f
parent2afe62952c52e9dc9cbd413db9a316ae4359c331
Add static_save property to luaentites to not save them statically. (#5112)

* Add no_static_save property to luaentites to not save them statically.
This allows for temporary objects that would get deleted anyway as soon as they are loaded again without the static saving overhead.

* Use positive meaning for static_save object property

* Invert meaning also for the LUA parameter
Note: getboolfield() does not change &result when field does not exist, so it defaults to the default value in the header file, which is 'true'.

* Extend push_object_properties()
doc/lua_api.txt
src/content_sao.h
src/object_properties.cpp
src/object_properties.h
src/script/common/c_content.cpp