diff options
author | Jeija <norrepli@gmail.com> | 2013-01-23 18:32:02 +0100 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-03-23 23:16:29 +0100 |
commit | e1ff5b13619666e5b987ecf4faaf294400ffd979 (patch) | |
tree | 13885f396367c79625a72a4445fe6e81819d92c5 /src/scriptapi.cpp | |
parent | ab57fdac44bae20e43500b3edd39bac9a0f563c5 (diff) | |
download | minetest-e1ff5b13619666e5b987ecf4faaf294400ffd979.tar.gz minetest-e1ff5b13619666e5b987ecf4faaf294400ffd979.tar.bz2 minetest-e1ff5b13619666e5b987ecf4faaf294400ffd979.zip |
Allow spawning particles from the server, from lua
Spawn single particles or make use of ParticleSpawner for many randomly spawned particles.
Accessible in Lua using minetest.spawn_particle and minetest.add_particlespawner.
Increase Protocol Version to 17.
Conflicts:
src/clientserver.h
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r-- | src/scriptapi.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index 13696eabf..29494ff69 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -44,6 +44,7 @@ extern "C" { #include "scriptapi_item.h" #include "scriptapi_content.h" #include "scriptapi_craft.h" +#include "scriptapi_particles.h" /*****************************************************************************/ /* Mod related */ @@ -1089,6 +1090,9 @@ static const struct luaL_Reg minetest_f [] = { {"get_all_craft_recipes", l_get_all_craft_recipes}, {"rollback_get_last_node_actor", l_rollback_get_last_node_actor}, {"rollback_revert_actions_by", l_rollback_revert_actions_by}, + {"add_particle", l_add_particle}, + {"add_particlespawner", l_add_particlespawner}, + {"delete_particlespawner", l_delete_particlespawner}, {NULL, NULL} }; |