diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-08 20:30:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-08 20:30:40 +0300 |
commit | fd3223578c0a0789627a92cc63235c24e75f87c3 (patch) | |
tree | 48b90671150a8ea4a7d3b9306d3eabca349d556a /src/particle | |
parent | 27a2dd4fce2d529cd1d96aa5ddce1e74b4f54a2f (diff) | |
download | manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.tar.gz manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.tar.bz2 manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.tar.xz manaverse-fd3223578c0a0789627a92cc63235c24e75f87c3.zip |
Remove most setters and getters from Resource class.
Diffstat (limited to 'src/particle')
-rw-r--r-- | src/particle/imageparticle.cpp | 2 | ||||
-rw-r--r-- | src/particle/particle.cpp | 2 | ||||
-rw-r--r-- | src/particle/particleemitter.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/particle/imageparticle.cpp b/src/particle/imageparticle.cpp index 796d0cd72..a8b5cd1ae 100644 --- a/src/particle/imageparticle.cpp +++ b/src/particle/imageparticle.cpp @@ -39,7 +39,7 @@ ImageParticle::ImageParticle(Image *restrict const image) : { mImage->incRef(); - const std::string &restrict name = mImage->getIdPath(); + const std::string &restrict name = mImage->mIdPath; StringIntMapIter it = ImageParticle::imageParticleCountByName.find(name); if (it == ImageParticle::imageParticleCountByName.end()) diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp index d518a15a3..6bd07d1fb 100644 --- a/src/particle/particle.cpp +++ b/src/particle/particle.cpp @@ -101,7 +101,7 @@ Particle::~Particle() { if (mType == ParticleType::Image) { - const std::string &restrict name = mImage->getIdPath(); + const std::string &restrict name = mImage->mIdPath; StringIntMapIter it = ImageParticle::imageParticleCountByName.find(name); if (it != ImageParticle::imageParticleCountByName.end()) diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp index 09008b363..1c9293063 100644 --- a/src/particle/particleemitter.cpp +++ b/src/particle/particleemitter.cpp @@ -527,7 +527,7 @@ void ParticleEmitter::createParticles(const int tick, Particle *newParticle = nullptr; if (mParticleImage) { - const std::string &name = mParticleImage->getIdPath(); + const std::string &name = mParticleImage->mIdPath; if (ImageParticle::imageParticleCountByName.find(name) == ImageParticle::imageParticleCountByName.end()) { |