summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-07-25 11:56:24 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-07-25 12:24:28 +0200
commit4e6971e59358b40956bb4c25f8f85e4cc018dbec (patch)
tree7facabe72a6473a55817725333c586563b215627 /src/server.h
parenta8c5841140c23f246adbc58f7c73195c01253697 (diff)
downloadminetest-4e6971e59358b40956bb4c25f8f85e4cc018dbec.tar.gz
minetest-4e6971e59358b40956bb4c25f8f85e4cc018dbec.tar.bz2
minetest-4e6971e59358b40956bb4c25f8f85e4cc018dbec.zip
Cleanup server addparticle(spawner) by merge two identical functions.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/server.h b/src/server.h
index 28909611b..d16230967 100644
--- a/src/server.h
+++ b/src/server.h
@@ -269,34 +269,21 @@ public:
void notifyPlayer(const char *name, const std::wstring &msg);
void notifyPlayers(const std::wstring &msg);
- void spawnParticle(const char *playername,
+ void spawnParticle(const std::string &playername,
v3f pos, v3f velocity, v3f acceleration,
float expirationtime, float size,
bool collisiondetection, bool vertical, const std::string &texture);
- void spawnParticleAll(v3f pos, v3f velocity, v3f acceleration,
- float expirationtime, float size,
- bool collisiondetection, bool vertical, const std::string &texture);
-
- u32 addParticleSpawner(const char *playername,
- u16 amount, float spawntime,
+ u32 addParticleSpawner(u16 amount, float spawntime,
v3f minpos, v3f maxpos,
v3f minvel, v3f maxvel,
v3f minacc, v3f maxacc,
float minexptime, float maxexptime,
float minsize, float maxsize,
- bool collisiondetection, bool vertical, const std::string &texture);
-
- u32 addParticleSpawnerAll(u16 amount, float spawntime,
- v3f minpos, v3f maxpos,
- v3f minvel, v3f maxvel,
- v3f minacc, v3f maxacc,
- float minexptime, float maxexptime,
- float minsize, float maxsize,
- bool collisiondetection, bool vertical, const std::string &texture);
+ bool collisiondetection, bool vertical, const std::string &texture,
+ const std::string &playername);
- void deleteParticleSpawner(const char *playername, u32 id);
- void deleteParticleSpawnerAll(u32 id);
+ void deleteParticleSpawner(const std::string &playername, u32 id);
// Creates or resets inventory
Inventory* createDetachedInventory(const std::string &name);