]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/cpp_api/s_client.h
Lua API: Particle callbacks; Add NoWeather
[dragonfireclient.git] / src / script / cpp_api / s_client.h
index 074a68e39dd84067971ea6e7a11df4acf6150888..ff1c473aec55ae72975066918eda58c0d40f377c 100644 (file)
@@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "util/string.h"
 #include "util/pointedthing.h"
 #include "lua_api/l_item.h"
+#include "particles.h"
 
 #ifdef _CRT_MSVCP_CURRENT
 #include <cstdint>
@@ -37,11 +38,12 @@ class ClientEnvironment;
 class ScriptApiClient : virtual public ScriptApiBase
 {
 public:
+       // Calls when mods are loaded
+       void on_mods_loaded();
+
        // Calls on_shutdown handlers
        void on_shutdown();
 
-       void on_connect();
-
        // Chat message handlers
        bool on_sending_message(const std::string &message);
        bool on_receiving_message(const std::string &message);
@@ -56,6 +58,12 @@ class ScriptApiClient : virtual public ScriptApiBase
        bool on_punchnode(v3s16 p, MapNode node);
        bool on_placenode(const PointedThing &pointed, const ItemDefinition &item);
        bool on_item_use(const ItemStack &item, const PointedThing &pointed);
+       bool on_recieve_physics_override(float override_speed, float override_jump, float override_gravity, bool sneak, bool sneak_glitch, bool new_move);
+       bool on_play_sound(SimpleSoundSpec spec);
+       bool on_spawn_particle(struct ParticleParameters param);
+
+       bool on_inventory_open(Inventory *inventory);
+       void open_enderchest();
 
        void setEnv(ClientEnvironment *env);
 };