MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetSound

Method GetSound

LuaSTGPlus/ResourceMgr.h:679–686  ·  view source on GitHub ↗

@brief 获取音效

Source from the content-addressed store, hash-verified

677
678 /// @brief 获取音效
679 fcyRefPointer<ResSound> GetSound(const char* name)LNOEXCEPT
680 {
681 auto i = m_SoundSpritePool.find(name);
682 if (i == m_SoundSpritePool.end())
683 return nullptr;
684 else
685 return i->second;
686 }
687
688 /// @brief 获取粒子系统
689 fcyRefPointer<ResParticle> GetParticle(const char* name)LNOEXCEPT

Callers 1

FindSoundMethod · 0.80

Calls 1

findMethod · 0.80

Tested by

no test coverage detected