MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / CScriptSound

Method CScriptSound

ogsr_engine/xrGame/script_sound.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "script_engine.h"
15
16CScriptSound::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
27CScriptSound::~CScriptSound()
28{

Callers

nothing calls this directly

Calls 3

existMethod · 0.80
script_logMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected