Commit Graph

3 Commits

Author SHA1 Message Date
Loic Blot f0154c7912 CSM: Implement register_globalstep
* Re-use fatal error mechanism from server to disconnect client on CSM error
* Little client functions cleanups
2017-01-22 12:04:31 +01:00
Loïc Blot f9680fe507 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
2017-01-22 00:20:55 +01:00
Loic Blot cba1afc8cd Client side modding
* rename GameScripting to ServerScripting
* Make getBuiltinLuaPath static serverside
* Add on_shutdown callback
* Add on_receiving_chat_message & on_sending_chat_message callbacks
* ScriptApiBase: use IGameDef instead of Server
  This permits to share common attribute between client & server
* Enable mod security in client side modding without conditions
2017-01-21 22:50:29 +01:00