| 1245 | } |
| 1246 | |
| 1247 | void 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 | |
| 1268 | void LoadAnimatedTextures() |
| 1269 | { |
no test coverage detected