[CSM] Add on_death, on_hp_modification & oh_damage_taken callbacks (#5093)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 21 Jan 2017 23:20:55 +0000 (00:20 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 13 Mar 2017 22:56:05 +0000 (23:56 +0100)
commit9978f5af828550d819890fed1fc56d65838a2c4c
tree34ba1ca2f7b2607fcd60166419a3ca9ab436e9bb
parentcb3a61f8db6b7020dd69f7786a1086f6fe014dfc
[CSM] Add on_death, on_hp_modification & oh_damage_taken callbacks (#5093)

* Add on_death callback
* Add on_hp_modification & on_damage_taken callbacks
* move preview code to preview.lua
builtin/client/init.lua
builtin/client/preview.lua [new file with mode: 0644]
builtin/client/register.lua
src/client.h
src/game.cpp
src/network/clientpackethandler.cpp
src/script/cpp_api/s_client.cpp
src/script/cpp_api/s_client.h