| 14 | #include "script_engine.h" |
| 15 | |
| 16 | CScriptSound::CScriptSound(LPCSTR caSoundName, ESoundTypes game_type, esound_type kind) |
| 17 | { |
| 18 | m_caSoundToPlay = caSoundName; |
| 19 | string_path l_caFileName; |
| 20 | VERIFY(::Sound); |
| 21 | if (FS.exist(l_caFileName, "$game_sounds$", caSoundName, ".ogg")) |
| 22 | m_sound.create(caSoundName, kind, game_type); |
| 23 | else |
| 24 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "File not found \"%s\"!", l_caFileName); |
| 25 | } |
| 26 | |
| 27 | CScriptSound::~CScriptSound() |
| 28 | { |
nothing calls this directly
no test coverage detected