| 2376 | } |
| 2377 | |
| 2378 | void Map::DeactivateProcedureLightSources( const MapData::Procedure& procedure ) |
| 2379 | { |
| 2380 | for( const MapData::Procedure::ActionCommand& command : procedure.action_commands ) |
| 2381 | { |
| 2382 | if( command.id == MapData::Procedure::ActionCommandId::Source ) |
| 2383 | { |
| 2384 | const EntityId id= |
| 2385 | GetLightSourceId( |
| 2386 | &procedure - map_data_->procedures.data(), |
| 2387 | &command - procedure.action_commands.data() ); |
| 2388 | |
| 2389 | // Remove light source om procedure deactivation, send death message. |
| 2390 | light_sources_.erase(id); |
| 2391 | light_sources_death_messages_.emplace_back(); |
| 2392 | light_sources_death_messages_.back().light_source_id= id; |
| 2393 | } |
| 2394 | } |
| 2395 | } |
| 2396 | |
| 2397 | void Map::EmitProcedureSound( const MapData::Procedure& procedure ) |
| 2398 | { |
nothing calls this directly
no outgoing calls
no test coverage detected