MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / addEntityParticleEffectBoneMenu

Method addEntityParticleEffectBoneMenu

source/render/RenderManager.cpp:371–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371Ogre::ParticleSystem* RenderManager::addEntityParticleEffectBoneMenu(const std::string& entityName,
372 const std::string& boneName, const std::string& particleName, const std::string& particleScript)
373{
374 if(!mSceneManager->hasEntity(entityName))
375 {
376 OD_LOG_ERR("Cannot find entityName=" + entityName);
377 return nullptr;
378 }
379
380 Ogre::ParticleSystem* particleSystem = mSceneManager->createParticleSystem(particleName, particleScript);
381
382 Ogre::Entity* ent = mSceneManager->getEntity(entityName);
383 ent->attachObjectToBone(boneName, particleSystem);
384
385 return particleSystem;
386}
387
388void RenderManager::removeEntityParticleEffectBoneMenu(const std::string& entityName,
389 Ogre::ParticleSystem* particleSystem)

Callers 1

activateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected