Drop content_sao.{cpp,h}
authorLoic Blot <loic.blot@unix-experience.fr>
Sat, 11 Apr 2020 09:22:15 +0000 (11:22 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 11 Apr 2020 14:07:17 +0000 (16:07 +0200)
commit5146086a64d5eeb480948d612a008a2ec81455d4
tree924bc1191cd251cd48d7f41e7d9b02577985eadf
parent894a34aef48024a752a1ef151d046955d83858d0
Drop content_sao.{cpp,h}

Move LuaEntitySAO to a new dedicated file
Drop TestSAO (useless object)
Drop the old static startup initialized SAO factory, which was pretty useless.
This factory was using a std::map for 2 elements, now just use a simple condition owned by ServerEnvironment, which will be lightweight, that will also drop a one time useful test on each LuaEntitySAO creation. This should reduce server load on massive SAO creation
27 files changed:
build/android/jni/Android.mk
src/CMakeLists.txt
src/clientiface.cpp
src/content_sao.cpp [deleted file]
src/content_sao.h [deleted file]
src/mapgen/mapgen.cpp
src/mapgen/mapgen_carpathian.cpp
src/mapgen/mapgen_flat.cpp
src/mapgen/mapgen_fractal.cpp
src/mapgen/mapgen_v5.cpp
src/mapgen/mapgen_v6.cpp
src/mapgen/mapgen_v7.cpp
src/script/cpp_api/s_base.cpp
src/script/lua_api/l_env.cpp
src/script/lua_api/l_item.cpp
src/script/lua_api/l_object.cpp
src/server/CMakeLists.txt
src/server/luaentity_sao.cpp [new file with mode: 0644]
src/server/luaentity_sao.h [new file with mode: 0644]
src/server/player_sao.h
src/server/serveractiveobject.cpp
src/server/serveractiveobject.h
src/serverenvironment.cpp
src/serverenvironment.h
src/staticobject.cpp
src/unittest/test_player.cpp
util/travis/clang-format-whitelist.txt