MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / LoadSoundSources

Function LoadSoundSources

TombEngine/Specific/level.cpp:1247–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1245}
1246
1247void LoadSoundSources()
1248{
1249 int soundSourceCount = ReadCount();
1250 TENLog("Sound source count: " + std::to_string(soundSourceCount), LogLevel::Info);
1251
1252 g_Level.SoundSources.reserve(soundSourceCount);
1253 for (int i = 0; i < soundSourceCount; i++)
1254 {
1255 auto& source = g_Level.SoundSources.emplace_back(SoundSourceInfo{});
1256
1257 source.Position.x = ReadInt32();
1258 source.Position.y = ReadInt32();
1259 source.Position.z = ReadInt32();
1260 source.SoundID = ReadInt32();
1261 source.Flags = ReadInt32();
1262 source.Name = ReadString();
1263
1264 g_GameScriptEntities->AddName(source.Name, source);
1265 }
1266}
1267
1268void LoadAnimatedTextures()
1269{

Callers 1

LoadLevelFunction · 0.85

Calls 8

ReadCountFunction · 0.85
TENLogFunction · 0.85
to_stringFunction · 0.85
ReadInt32Function · 0.85
ReadStringFunction · 0.85
emplace_backMethod · 0.80
AddNameMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected