1
0
mirror of https://github.com/moparisthebest/minetest synced 2025-01-10 05:08:07 -05:00
Commit Graph

6 Commits

Author SHA1 Message Date
Loïc Blot
518099f0ca CSM: implement client side mod loading (#5123)
* client side mods are located in clientmods/
* move builtin/preview.lua to clientmods/preview/init.lua as a preview mod
* refactor ModConfiguration class to work properly with client and server using child objects
* move some Server constructor mod load code to ModConfiguration to reduce code duplication between client and server
* remove mods.{cpp,h} unused functions
* use UNORDERED_SET instead of std::set in some modspec storages
2017-01-27 07:41:10 +01:00
red-001
635507c40a Add local formspecs. (#5094) 2017-01-26 22:47:28 +01:00
Loïc Blot
603b838c48 CSM: sound_play & sound_stop support + client_lua_api doc (#5096)
* squashed: CSM: Implement register_globalstep
  * Re-use fatal error mechanism from server to disconnect client on CSM error
  * Little client functions cleanups

* squashed: CSM: add core.after function
  * core.after is shared code between client & server
  * ModApiUtil get_us_time feature enabled for client
2017-01-26 22:46:53 +01:00
red-001
9261346874 Add client-sided chat commands (#5092)
CSM: Add client-sided chat commands
2017-01-26 22:46:52 +01:00
Loïc Blot
22516eee29 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-26 22:46:52 +01:00
Loic Blot
9092d40f65 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-26 21:55:20 +01:00