summaryrefslogtreecommitdiff
path: root/src/particle/particlevector.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-13 18:04:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-13 18:04:01 +0300
commitc676f4b880ed0abd644085e587e98e3f6ba1c16b (patch)
treea53167ffac4829da9903de9557126dc9206c9f3d /src/particle/particlevector.h
parentbcf122e6d80e767bd4546b183f24b46cbbea65f1 (diff)
downloadmanaverse-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.gz
manaverse-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.bz2
manaverse-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.xz
manaverse-c676f4b880ed0abd644085e587e98e3f6ba1c16b.zip
Show particles amount in being popup.
Diffstat (limited to 'src/particle/particlevector.h')
-rw-r--r--src/particle/particlevector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/particle/particlevector.h b/src/particle/particlevector.h
index 8804991be..68589e4e1 100644
--- a/src/particle/particlevector.h
+++ b/src/particle/particlevector.h
@@ -59,6 +59,9 @@ class ParticleVector final : public ParticleContainer
void moveTo(const float x, const float y) override final;
+ size_t size() const
+ { return mIndexedElements.size(); }
+
protected:
std::vector<Particle *> mIndexedElements;
};