| 28 | std::map<Uint32, std::map<Uint32, ParticleEmitterHit_t>> particleTimerEmitterHitEntities; |
| 29 | std::map<Uint32, ParticleTimerEffect_t> particleTimerEffects; |
| 30 | ParticleEmitterHit_t* getParticleEmitterHitProps(Uint32 emitterUid, Entity* hitentity) |
| 31 | { |
| 32 | if ( emitterUid == 0 || !hitentity ) { return nullptr; } |
| 33 | |
| 34 | if ( (Sint32)(hitentity->getUID()) >= 0 ) |
| 35 | { |
| 36 | auto& emitterHit = particleTimerEmitterHitEntities[emitterUid]; |
| 37 | auto find = emitterHit.find(hitentity->getUID()); |
| 38 | if ( find != emitterHit.end() ) |
| 39 | { |
| 40 | return &find->second; |
| 41 | } |
| 42 | else |
| 43 | { |
| 44 | auto& entry = emitterHit[hitentity->getUID()]; |
| 45 | return &entry; |
| 46 | } |
| 47 | } |
| 48 | return nullptr; |
| 49 | } |
| 50 | |
| 51 | void freeSpells() |
| 52 | { |
no test coverage detected