Performance fix + SAO factorization
authorRogier <rogier777@gmail.com>
Mon, 9 Jan 2017 19:39:45 +0000 (04:39 +0900)
committerNer'zhul <nerzhul@users.noreply.github.com>
Wed, 11 Jan 2017 14:53:56 +0000 (15:53 +0100)
commit66479394037baa941cb06d75d3afc79ff4c717a2
treeade7d34a6c37987ebbd227df422c5643473194e8
parentec30d49e026af2d0cb8329eb66aec48d12e79839
Performance fix + SAO factorization

Original credits goes to @Rogier-5

* Merge common attributes between LuaEntitySAO & PlayerSAO to UnitSAO
* Make some functions const
* Improve some lists performance by returning const ref

Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
src/activeobject.h
src/clientobject.h
src/content_cao.cpp
src/content_cao.h
src/content_sao.cpp
src/content_sao.h
src/script/lua_api/l_object.cpp
src/serverobject.h