MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / DeactivateProcedureLightSources

Method DeactivateProcedureLightSources

PanzerChasm/server/map.cpp:2378–2395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2376}
2377
2378void 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
2397void Map::EmitProcedureSound( const MapData::Procedure& procedure )
2398{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected