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

Method SpawnLightFlash

PanzerChasm/client/map_state.cpp:867–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867void MapState::SpawnLightFlash( const m_Vec2& pos )
868{
869 light_flashes_.emplace_back();
870 LightFlash& light= light_flashes_.back();
871
872 light.pos= pos;
873 light.birth_time= last_tick_time_;
874 light.intensity= 0.0f;
875 // TODO - use blinking
876}
877
878void MapState::ProcessMessage( const Messages::RotatingLightSourceBirth& message )
879{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected